- fixed: The serialiter functionfor FDoorAnimation accessed the invalid destination pointer when loading a savegame.

This commit is contained in:
Christoph Oelckers 2016-10-21 18:13:59 +02:00
parent 21b690a3c7
commit b1289fa783

View file

@ -1002,7 +1002,7 @@ void FTextureManager::UpdateAnimations (DWORD mstime)
template<> FSerializer &Serialize(FSerializer &arc, const char *key, FDoorAnimation *&p, FDoorAnimation **def)
{
FTextureID tex = p->BaseTexture;
FTextureID tex = p? p->BaseTexture : FNullTextureID();
Serialize(arc, key, tex, def ? &(*def)->BaseTexture : nullptr);
if (arc.isReading())
{