Skip to content

Commit

Permalink
AVALANCHE: Fix savegame version checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 24, 2013
1 parent fe7f28b commit c63b2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/avalanche/avalanche.cpp
Expand Up @@ -421,7 +421,7 @@ bool AvalancheEngine::loadGame(const int16 slot) {

// Check version. We can't restore from obsolete versions.
byte saveVersion = f->readByte();
if (saveVersion != kSavegameVersion) {
if (saveVersion > kSavegameVersion) {
warning("Savegame of incompatible version!");
delete f;
return false;
Expand Down
2 changes: 1 addition & 1 deletion engines/avalanche/detection.cpp
Expand Up @@ -129,7 +129,7 @@ SaveStateList AvalancheMetaEngine::listSaves(const char *target) const {

// Check version.
byte saveVersion = file->readByte();
if (saveVersion != kSavegameVersion) {
if (saveVersion > kSavegameVersion) {
warning("Savegame of incompatible version!");
delete file;
continue;
Expand Down

0 comments on commit c63b2b2

Please sign in to comment.