aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2002-06-01 21:39:57 +0000
committerMax Horn2002-06-01 21:39:57 +0000
commit2a37e8b872206d1c700bcf8b048088070e91341c (patch)
tree7e11adc9739266cc4cd8bd627aedf194b7a0e51b
parentf33c6f08b009b03dda7ac7cd11f0d71fd04c41d1 (diff)
downloadscummvm-rg350-2a37e8b872206d1c700bcf8b048088070e91341c.tar.gz
scummvm-rg350-2a37e8b872206d1c700bcf8b048088070e91341c.tar.bz2
scummvm-rg350-2a37e8b872206d1c700bcf8b048088070e91341c.zip
fixed script dumping for small header games (by MadMoose)
svn-id: r4390
-rw-r--r--scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scummvm.cpp b/scummvm.cpp
index 086edfc32d..7d74ccd289 100644
--- a/scummvm.cpp
+++ b/scummvm.cpp
@@ -630,6 +630,7 @@ void Scumm::initRoomSubBlocks()
while ((ptr = findResourceSmall(MKID('LSCR'), searchptr)) != NULL) {
int id = 0;
ptr += _resourceHeaderSize; /* skip tag & size */
+ id = ptr[0];
#ifdef DUMP_SCRIPTS
do {
char buf[32];
@@ -637,7 +638,6 @@ void Scumm::initRoomSubBlocks()
dumpResource(buf, id, ptr - 6);
} while (0);
#endif
- id = ptr[0];
_localScriptList[id - _numGlobalScripts] = ptr + 1 - roomptr;
searchptr = NULL;
}