- fixed incorrect order of resource deallocation in savegame reader.

This commit is contained in:
Christoph Oelckers 2021-05-08 09:22:08 +02:00
parent 325af156e7
commit d466ec081a

View file

@ -145,8 +145,8 @@ bool ReadSavegame(const char* name)
FSerializer arc; FSerializer arc;
if (!arc.OpenReader((const char*)data, info->LumpSize)) if (!arc.OpenReader((const char*)data, info->LumpSize))
{ {
delete savereader;
info->Unlock(); info->Unlock();
delete savereader;
return false; return false;
} }
info->Unlock(); info->Unlock();