diff options
author | Max Horn | 2003-05-21 16:28:02 +0000 |
---|---|---|
committer | Max Horn | 2003-05-21 16:28:02 +0000 |
commit | 8a82e59065433e679958feb864208db0bba0f354 (patch) | |
tree | ffa430f18a2a93b1eca150d6f3106e94739f2be6 /scumm/script_v5.cpp | |
parent | 4fb4626ac99eed69c86afd94371c5784f2ede61a (diff) | |
download | scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.gz scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.tar.bz2 scummvm-rg350-8a82e59065433e679958feb864208db0bba0f354.zip |
constness fixes
svn-id: r7787
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r-- | scumm/script_v5.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 2a81d7d8b9..bc3e3a7830 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1002,7 +1002,7 @@ void Scumm_v5::o5_getActorScale() { // INDY3 uses this opcode as a wait_for_actor(); if ((_gameId == GID_INDY3_256) || (_gameId == GID_INDY3)) { - byte *oldaddr = _scriptPointer - 1; + const byte *oldaddr = _scriptPointer - 1; if (derefActorSafe(getVarOrDirectByte(0x80), "o5_wait")->moving) { _scriptPointer = oldaddr; o5_breakHere(); @@ -2301,9 +2301,7 @@ void Scumm_v5::o5_verbOps() { } void Scumm_v5::o5_wait() { - byte *oldaddr; - - oldaddr = _scriptPointer - 1; + const byte *oldaddr = _scriptPointer - 1; if ((_gameId == GID_INDY3_256) || (_gameId == GID_INDY3)) { _opcode = 2; |