mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 14:22:13 +00:00
- fixed: PClass::StaticShutdown did not remove the class pointers for VM base classes from their class registration entries.
This commit is contained in:
parent
30a2171080
commit
e009cbec9e
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue