aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Gilbert2007-09-28 07:58:11 +0000
committerPaul Gilbert2007-09-28 07:58:11 +0000
commitf490db074b6a5d9cdfb59cdf0db796f73c8b6388 (patch)
tree20ad9818449d9949bcebf54b3fc431c47da75385 /tools
parentef30bc06f6e453500896901a83c738fd8eec4ed8 (diff)
downloadscummvm-rg350-f490db074b6a5d9cdfb59cdf0db796f73c8b6388.tar.gz
scummvm-rg350-f490db074b6a5d9cdfb59cdf0db796f73c8b6388.tar.bz2
scummvm-rg350-f490db074b6a5d9cdfb59cdf0db796f73c8b6388.zip
Fix to correctly reset action sequence list between languages
svn-id: r29116
Diffstat (limited to 'tools')
-rw-r--r--tools/create_lure/process_actions.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/create_lure/process_actions.cpp b/tools/create_lure/process_actions.cpp
index 0048f1a2a9..8541753943 100644
--- a/tools/create_lure/process_actions.cpp
+++ b/tools/create_lure/process_actions.cpp
@@ -94,7 +94,7 @@ uint16 get_sequence_index(uint16 offset, int supportIndex) {
}
}
- for (index = 0; index <= numSupportEntries; ++index) {
+ for (index = 0; index < numSupportEntries; ++index) {
SupportStructure &rec = supportList[index];
if ((rec.numInstructions > 0) &&
@@ -298,15 +298,16 @@ void process_entry(uint16 offset, byte *data, uint16 &totalSize) {
supportList[numSupportEntries].offset = offset;
supportList[numSupportEntries].numInstructions = 0;
supportList[numSupportEntries].resourceOffset = totalSize;
-//printf("process_entry index=%d, offset=%xh\n", numSupportEntries + 1, offset);
- totalSize += process_action_sequence_entry(numSupportEntries,
- data + totalSize, MAX_DATA_SIZE - totalSize);
++numSupportEntries;
if (numSupportEntries == MAX_BUFFER_ENTRIES) {
printf("Ran out of buffer space in processing NPC schedules\n");
exit(1);
}
+
+//printf("process_entry index=%d, offset=%xh\n", numSupportEntries, offset);
+ totalSize += process_action_sequence_entry(numSupportEntries - 1,
+ data + totalSize, MAX_DATA_SIZE - totalSize);
}
}