- immediately abort loading a savegame if object deserialization fails.

If the loader is allowed to go on, these objects will be linked into game structures and may do unpredictable things before the loader has a chance to abort at the end.
This commit is contained in:
Christoph Oelckers 2020-09-26 20:36:10 +02:00
commit 668ebd9be1
3 changed files with 4 additions and 0 deletions

View file

@ -675,6 +675,7 @@ void FSerializer::ReadObjects(bool hubtravel)
{
Printf(TEXTCOLOR_RED "Failed to restore all objects in savegame\n");
mErrors++;
mObjectErrors++;
}
}
catch(...)