aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/nim.cpp
diff options
context:
space:
mode:
authorStrangerke2013-11-23 10:18:04 +0100
committerStrangerke2013-11-23 10:18:04 +0100
commit84e99ae652662dfb32294cd9034666af9cf47e76 (patch)
tree0e270d81d31f527e509408744aee837eb4f8d1bb /engines/avalanche/nim.cpp
parent13449472f2b2930cb09bcb685bf1d9a49c0d8ed1 (diff)
downloadscummvm-rg350-84e99ae652662dfb32294cd9034666af9cf47e76.tar.gz
scummvm-rg350-84e99ae652662dfb32294cd9034666af9cf47e76.tar.bz2
scummvm-rg350-84e99ae652662dfb32294cd9034666af9cf47e76.zip
AVALANCHE: Fix savegames compatibility before/after Nim implementation
Diffstat (limited to 'engines/avalanche/nim.cpp')
-rw-r--r--engines/avalanche/nim.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index faca3e491d..d066ffc3e8 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -43,6 +43,9 @@ void Nim::resetVariables() {
}
void Nim::synchronize(Common::Serializer &sz) {
+ if (sz.isLoading() && sz.getVersion() < 2)
+ return;
+
sz.syncAsByte(_playedNim);
}