Fix another savegame cache corruption.
While working on it incorrectly inverted an if statement, fixed now.
This commit is contained in:
parent
1e89cbcc08
commit
39c1c5162d
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue