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

Improved error for calling ptr to ref type. Fixed properties on ptr

This commit is contained in:
Brian Fiete 2020-04-25 15:01:02 -07:00
parent 1bd94d7a52
commit 53337c7c50
2 changed files with 19 additions and 4 deletions

View file

@ -1335,8 +1335,8 @@ void BfContext::SaveDeletingType(BfType* type)
}
else
{
savedTypeData = *savedTypeDataPtr;
BF_DBG_FATAL("mSavedTypeData already had type name");
// This can happen if we have a conflicting type definition
savedTypeData = *savedTypeDataPtr;
}
savedTypeData->mTypeId = type->mTypeId;
while ((int)mSavedTypeData.size() <= savedTypeData->mTypeId)