- bugfixes on windows platform when some folders and files are missing, do not crash hard.

This commit is contained in:
SoftCoder
2013-12-27 23:05:20 -08:00
parent 163a5a173a
commit b6cd751250
6 changed files with 12 additions and 12 deletions

View File

@@ -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;
}