mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- bugfixes on windows platform when some folders and files are missing, do not crash hard.
This commit is contained in:
@@ -883,7 +883,7 @@ void MapPreview::loadFromFile(const string &path) {
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f1);
|
||||
if(f1) fclose(f1);
|
||||
|
||||
fileLoaded = true;
|
||||
mapFileLoaded = path;
|
||||
@@ -964,7 +964,7 @@ void MapPreview::saveToFile(const string &path) {
|
||||
}
|
||||
}
|
||||
|
||||
fclose(f1);
|
||||
if(f1) fclose(f1);
|
||||
|
||||
hasChanged = false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user