From 6290f1e5fcc241441230912c4762828500988dab Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Mon, 26 Sep 2016 19:28:51 -0500 Subject: SCI: Add prefix to global variable constants --- engines/sci/engine/savegame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sci/engine/savegame.cpp') 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; } -- cgit v1.2.3