mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- take down the savegame loader's resources in proper order.
This commit is contained in:
parent
bdfa13e341
commit
d90b23ba9a
1 changed files with 3 additions and 1 deletions
|
@ -133,6 +133,7 @@ bool ReadSavegame(const char* name)
|
|||
delete savereader;
|
||||
return false;
|
||||
}
|
||||
file.Close();
|
||||
|
||||
FResourceLump* info = savereader->FindLump("session.json");
|
||||
if (info == nullptr)
|
||||
|
@ -149,11 +150,12 @@ bool ReadSavegame(const char* name)
|
|||
delete savereader;
|
||||
return false;
|
||||
}
|
||||
info->Unlock();
|
||||
|
||||
// Load the savegame.
|
||||
loadMapBackup(currentLevel->fileName);
|
||||
SerializeSession(arc);
|
||||
arc.Close();
|
||||
info->Unlock();
|
||||
delete savereader;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue