1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed crash when using a failed closure

This commit is contained in:
Brian Fiete 2020-02-28 11:12:21 -08:00
parent c92bc523db
commit bb34a468bb
4 changed files with 9 additions and 5 deletions

View file

@ -1760,6 +1760,7 @@ void BfTypeInstance::CalcHotVirtualData(Array<int>* ifaceMapping)
BfClosureType::BfClosureType(BfTypeInstance* srcDelegate, Val128 closureHash) :
mSource(srcDelegate->mTypeDef->mSystem)
{
BF_ASSERT(srcDelegate->IsDelegate());
mSrcDelegate = srcDelegate;
mTypeDef = mSrcDelegate->mTypeDef;
mCreatedTypeDef = false;