major A_ChangeModel cleanup

This commit is contained in:
Ricardo Luís Vaz Silva 2023-04-20 22:06:55 -03:00 committed by Rachael Alexanderson
commit b55ffdbfd3
4 changed files with 197 additions and 104 deletions

View file

@ -1336,6 +1336,15 @@ void DActorModelData::Serialize(FSerializer& arc)
("hasModel", hasModel);
}
void DActorModelData::OnDestroy()
{
modelIDs.Reset();
modelFrameGenerators.Reset();
skinIDs.Reset();
surfaceSkinIDs.Reset();
animationIDs.Reset();
}
//----------------------------------------------------------------------------
//
// PROC P_ExplodeMissile