Don't attempt to restore program state from non-existing state file

fixes #8444
This commit is contained in:
Michael Friedrich 2015-02-14 23:39:10 +01:00
parent 8903c7e379
commit 7a93cf8cce
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ void DynamicObject::RestoreObject(const String& message, int attributeTypes)
void DynamicObject::RestoreObjects(const String& filename, int attributeTypes) void DynamicObject::RestoreObjects(const String& filename, int attributeTypes)
{ {
if (!Utility::PathExists(filename))
return;
Log(LogInformation, "DynamicObject") Log(LogInformation, "DynamicObject")
<< "Restoring program state from file '" << filename << "'"; << "Restoring program state from file '" << filename << "'";