mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- fixed: The serialiter functionfor FDoorAnimation accessed the invalid destination pointer when loading a savegame.
This commit is contained in:
parent
21b690a3c7
commit
b1289fa783
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue