aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/workarounds.cpp
diff options
context:
space:
mode:
authorMax Horn2011-03-07 23:21:27 +0100
committerMax Horn2011-03-07 23:21:35 +0100
commit2cbefc8bb5644847a29427272757d4a234cfdf13 (patch)
tree7e793ff240096117c9d059ad7aa3c4989e7c3b71 /engines/sci/engine/workarounds.cpp
parente8151026594c16a84d390059faa5aaaeafa621da (diff)
downloadscummvm-rg350-2cbefc8bb5644847a29427272757d4a234cfdf13.tar.gz
scummvm-rg350-2cbefc8bb5644847a29427272757d4a234cfdf13.tar.bz2
scummvm-rg350-2cbefc8bb5644847a29427272757d4a234cfdf13.zip
SCI: Constify some code
Diffstat (limited to 'engines/sci/engine/workarounds.cpp')
-rw-r--r--engines/sci/engine/workarounds.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp
index 2b60b1aa81..fb6c0e485f 100644
--- a/engines/sci/engine/workarounds.cpp
+++ b/engines/sci/engine/workarounds.cpp
@@ -401,14 +401,14 @@ SciWorkaroundSolution trackOriginAndFindWorkaround(int index, const SciWorkaroun
return sci3IgnoreForNow;
}
- EngineState *state = g_sci->getEngineState();
+ const EngineState *state = g_sci->getEngineState();
ExecStack *lastCall = state->xs;
- Script *local_script = state->_segMan->getScriptIfLoaded(lastCall->local_segment);
- int curScriptNr = local_script->getScriptNumber();
+ const Script *localScript = state->_segMan->getScriptIfLoaded(lastCall->local_segment);
+ int curScriptNr = localScript->getScriptNumber();
if (lastCall->debugLocalCallOffset != -1) {
// if lastcall was actually a local call search back for a real call
- Common::List<ExecStack>::iterator callIterator = state->_executionStack.end();
+ Common::List<ExecStack>::const_iterator callIterator = state->_executionStack.end();
while (callIterator != state->_executionStack.begin()) {
callIterator--;
ExecStack loopCall = *callIterator;