Fix another savegame cache corruption.

While working on it incorrectly inverted an if statement, fixed now.
This commit is contained in:
Mark de Wever 2009-03-02 20:11:31 +00:00
parent 1e89cbcc08
commit 39c1c5162d
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,8 @@
Version 1.5.12+svn:
* Language and i18n:
* updated translations: Chinese (Simplified)
* Miscellaneous and bug fixes:
* Fix another savegame cache corruption
Version 1.5.12:
* Add-on server:

View file

@ -963,7 +963,7 @@ config& save_summary(std::string save)
* a file. If not some parts of the code use the name with and some parts
* without the .gz suffix.
*/
if(save.length() >= 3 && save.substr(save.length() - 3) != ".gz") {
if(save.length() < 3 || save.substr(save.length() - 3) != ".gz") {
save += ".gz";
}