diff options
author | Colin Snover | 2016-09-26 19:28:51 -0500 |
---|---|---|
committer | Colin Snover | 2016-09-29 19:39:16 -0500 |
commit | 6290f1e5fcc241441230912c4762828500988dab (patch) | |
tree | 0c763293504b076fc1ffdc1ae83043449facc00e /engines/sci/engine/kscripts.cpp | |
parent | 8cb994b80125fbb02a1c2d35781e96e194a56ed1 (diff) | |
download | scummvm-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/kscripts.cpp')
-rw-r--r-- | engines/sci/engine/kscripts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/kscripts.cpp b/engines/sci/engine/kscripts.cpp index 749af67580..0e29ccf783 100644 --- a/engines/sci/engine/kscripts.cpp +++ b/engines/sci/engine/kscripts.cpp @@ -238,8 +238,8 @@ reg_t kScriptID(EngineState *s, int argc, reg_t *argv) { // initialized to 0, whereas it's 6 in other versions. Thus, we assign it // to 6 here, fixing the speed of the introduction. Refer to bug #3102071. if (g_sci->getGameId() == GID_PQ2 && script == 200 && - s->variables[VAR_GLOBAL][kSpeed].isNull()) { - s->variables[VAR_GLOBAL][kSpeed] = make_reg(0, 6); + s->variables[VAR_GLOBAL][kGlobalVarSpeed].isNull()) { + s->variables[VAR_GLOBAL][kGlobalVarSpeed] = make_reg(0, 6); } return make_reg(scriptSeg, address); |