- fixed: PClass::StaticShutdown did not remove the class pointers for VM base classes from their class registration entries.

This commit is contained in:
Christoph Oelckers 2016-11-12 10:17:57 +01:00
parent 30a2171080
commit e009cbec9e

View file

@ -2731,9 +2731,11 @@ void PClass::StaticShutdown ()
FAutoSegIterator probe(CRegHead, CRegTail);
while (*++probe != NULL)
while (*++probe != nullptr)
{
((ClassReg *)*probe)->MyClass = NULL;
auto cr = ((ClassReg *)*probe);
cr->MyClass = nullptr;
if (cr->VMExport != nullptr) cr->VMExport->MyClass = nullptr;
}
}