aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2004-09-16 09:47:07 +0000
committerTravis Howell2004-09-16 09:47:07 +0000
commit9bc8383ceeec56234a1e2a14af9d8d830d0d132d (patch)
treecf8e9cce68bcb1a503f96beb1e044d5829b549c1
parentb45b800ed52ec2c721c2f9c17bb09c59b4249d8e (diff)
downloadscummvm-rg350-9bc8383ceeec56234a1e2a14af9d8d830d0d132d.tar.gz
scummvm-rg350-9bc8383ceeec56234a1e2a14af9d8d830d0d132d.tar.bz2
scummvm-rg350-9bc8383ceeec56234a1e2a14af9d8d830d0d132d.zip
Oops
svn-id: r15137
-rw-r--r--scumm/scumm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 22b1f897f0..06525cc6cc 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -2728,8 +2728,8 @@ void ScummEngine::initRoomSubBlocks() {
_localScriptList[id - _numGlobalScripts] = ptr + 1 - roomptr;
}
} else if (_heversion >= 90) {
- ResourceIterator localScriptIterator(searchptr, false);
- while ((ptr = localScriptIterator.findNext(MKID('LSC2'))) != NULL) {
+ ResourceIterator localScriptIterator2(searchptr, false);
+ while ((ptr = localScriptIterator2.findNext(MKID('LSC2'))) != NULL) {
int id = 0;
ptr += _resourceHeaderSize; /* skip tag & size */
@@ -2746,6 +2746,7 @@ void ScummEngine::initRoomSubBlocks() {
}
}
+ ResourceIterator localScriptIterator(searchptr, false);
while ((ptr = localScriptIterator.findNext(MKID('LSCR'))) != NULL) {
int id = 0;