mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed a crash deleting an inner type on a combined partial (MethodData)
This commit is contained in:
parent
9102a54ce4
commit
5158d257b0
1 changed files with 3 additions and 2 deletions
|
@ -3018,8 +3018,8 @@ void BfCompiler::UpdateRevisedTypes()
|
|||
if (compositeTypeDef->mNextRevision != NULL)
|
||||
{
|
||||
// This is an old 'next revision'
|
||||
delete compositeTypeDef->mNextRevision;
|
||||
compositeTypeDef->mNextRevision = NULL;
|
||||
mSystem->InjectNewRevision(compositeTypeDef);
|
||||
BF_ASSERT(compositeTypeDef->mNextRevision == NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3169,6 +3169,7 @@ void BfCompiler::UpdateRevisedTypes()
|
|||
BF_ASSERT(rootTypeDef == NULL);
|
||||
latestCompositeTypeDef->mTypeCode = BfTypeCode_Object;
|
||||
}
|
||||
|
||||
BfLogSysM("Partial combined type typedef %p updated from parser %p\n", compositeTypeDef, latestCompositeTypeDef->mTypeDeclaration->GetSourceData());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue