diff options
author | Max Horn | 2002-06-01 21:39:57 +0000 |
---|---|---|
committer | Max Horn | 2002-06-01 21:39:57 +0000 |
commit | 2a37e8b872206d1c700bcf8b048088070e91341c (patch) | |
tree | 7e11adc9739266cc4cd8bd627aedf194b7a0e51b | |
parent | f33c6f08b009b03dda7ac7cd11f0d71fd04c41d1 (diff) | |
download | scummvm-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.cpp | 2 |
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; } |