diff options
author | Colin Snover | 2016-09-14 14:00:12 -0500 |
---|---|---|
committer | Colin Snover | 2016-09-29 19:39:16 -0500 |
commit | b5d0fffb8b111c5d8154a37ba9a0d7b18866c7dd (patch) | |
tree | 12bba6c41bc031c570c2777ad6c1c0c0f7d4b688 /engines/sci/engine/kscripts.cpp | |
parent | a96dc1a7b879994ab5111ed223e9831ea81054b9 (diff) | |
download | scummvm-rg350-b5d0fffb8b111c5d8154a37ba9a0d7b18866c7dd.tar.gz scummvm-rg350-b5d0fffb8b111c5d8154a37ba9a0d7b18866c7dd.tar.bz2 scummvm-rg350-b5d0fffb8b111c5d8154a37ba9a0d7b18866c7dd.zip |
SCI: Replace magic numbers for globals with named 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 6fd130bceb..749af67580 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][3].isNull()) { - s->variables[VAR_GLOBAL][3] = make_reg(0, 6); + s->variables[VAR_GLOBAL][kSpeed].isNull()) { + s->variables[VAR_GLOBAL][kSpeed] = make_reg(0, 6); } return make_reg(scriptSeg, address); |