aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/savegame.cpp
diff options
context:
space:
mode:
authorColin Snover2016-09-26 19:28:51 -0500
committerColin Snover2016-09-29 19:39:16 -0500
commit6290f1e5fcc241441230912c4762828500988dab (patch)
tree0c763293504b076fc1ffdc1ae83043449facc00e /engines/sci/engine/savegame.cpp
parent8cb994b80125fbb02a1c2d35781e96e194a56ed1 (diff)
downloadscummvm-rg350-6290f1e5fcc241441230912c4762828500988dab.tar.gz
scummvm-rg350-6290f1e5fcc241441230912c4762828500988dab.tar.bz2
scummvm-rg350-6290f1e5fcc241441230912c4762828500988dab.zip
SCI: Add prefix to global variable constants
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r--engines/sci/engine/savegame.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp
index d50df94f4b..36c35e47ea 100644
--- a/engines/sci/engine/savegame.cpp
+++ b/engines/sci/engine/savegame.cpp
@@ -337,12 +337,12 @@ static void sync_SavegameMetadata(Common::Serializer &s, SavegameMetadata &obj)
if (s.isSaving()) {
const reg_t *globals = g_sci->getEngineState()->variables[VAR_GLOBAL];
if (g_sci->getGameId() == GID_SHIVERS) {
- obj.lowScore = globals[kScore].toUint16();
- obj.highScore = globals[kShivers1Score].toUint16();
+ obj.lowScore = globals[kGlobalVarScore].toUint16();
+ obj.highScore = globals[kGlobalVarShivers1Score].toUint16();
obj.avatarId = 0;
} else if (g_sci->getGameId() == GID_MOTHERGOOSEHIRES) {
obj.lowScore = obj.highScore = 0;
- obj.avatarId = readSelectorValue(g_sci->getEngineState()->_segMan, globals[kEgo], SELECTOR(view));
+ obj.avatarId = readSelectorValue(g_sci->getEngineState()->_segMan, globals[kGlobalVarEgo], SELECTOR(view));
} else {
obj.lowScore = obj.highScore = obj.avatarId = 0;
}