- fixed: G_UnsnapshotLevel should abort with an error if it cannot read the savegame.

- fixed: The exception handler in G_DoLoadGame needs to rethrow the exception it receives.
This commit is contained in:
Christoph Oelckers 2016-10-05 19:02:53 +02:00
commit 59d5b42abf
2 changed files with 6 additions and 2 deletions

View file

@ -1512,7 +1512,11 @@ void G_UnSnapshotLevel (bool hubLoad)
if (level.info->isValid())
{
FSerializer arc;
if (!arc.OpenReader(&level.info->Snapshot)) return;
if (!arc.OpenReader(&level.info->Snapshot))
{
I_Error("Failed to load savegame");
return;
}
G_SerializeLevel (arc, hubLoad);
level.FromSnapshot = true;