Clear TravellingThinkers on level data clear

This commit is contained in:
Boondorl 2025-08-12 11:54:26 -04:00 committed by Ricardo Luís Vaz Silva
commit 2a660cc3f3
2 changed files with 1 additions and 2 deletions

View file

@ -1727,8 +1727,6 @@ void FLevelLocals::MoveTravellers()
mo->section = nullptr;
mo->floorsector = mo->ceilingsector = nullptr;
}
TravellingThinkers.Clear();
}
//==========================================================================

View file

@ -297,6 +297,7 @@ void FLevelLocals::ClearLevelData(bool fullgc)
probe->ClearNativePointerFields({ fieldTypes, std::size(fieldTypes) });
}
TravellingThinkers.Clear();
interpolator.ClearInterpolations(); // [RH] Nothing to interpolate on a fresh level.
Thinkers.DestroyAllThinkers(fullgc);
ClientsideThinkers.DestroyAllThinkers(fullgc);