diff options
author | D G Turner | 2012-07-25 02:36:22 +0100 |
---|---|---|
committer | D G Turner | 2012-07-25 02:36:22 +0100 |
commit | 1b178317a84cec166f969ffde5763b8c9acd8164 (patch) | |
tree | 28737296e67d5c5b6997f18d5bd58b8e2c782f48 /devtools/create_teenagent | |
parent | ed6590c7c8ec19ea75dcc2628e47ff86fc0a2959 (diff) | |
download | scummvm-rg350-1b178317a84cec166f969ffde5763b8c9acd8164.tar.gz scummvm-rg350-1b178317a84cec166f969ffde5763b8c9acd8164.tar.bz2 scummvm-rg350-1b178317a84cec166f969ffde5763b8c9acd8164.zip |
DEVTOOLS: Fix remaining bug in create_teenagent message string output.
Second block start position calculation was incorrect.
Diffstat (limited to 'devtools/create_teenagent')
-rw-r--r-- | devtools/create_teenagent/create_teenagent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devtools/create_teenagent/create_teenagent.cpp b/devtools/create_teenagent/create_teenagent.cpp index ade61ff208..e01ca76bcc 100644 --- a/devtools/create_teenagent/create_teenagent.cpp +++ b/devtools/create_teenagent/create_teenagent.cpp @@ -143,9 +143,9 @@ int main(int argc, char *argv[]) { uint dsegFinalSize = 0xe790; - printf("const static uint8 dsegFinalBlock[%d] = {\n", dsegFinalSize - dsegMessageSize); + printf("const static uint8 dsegFinalBlock[%d] = {\n", dsegFinalSize - dsegMessageSize - 1); uint j = 0; - for (uint i = dsegMessageSize; i < dsegFinalSize; i++, j++) { + for (uint i = dsegMessageSize + 1; i < dsegFinalSize; i++, j++) { if ((j % 8) == 0) printf("\t"); else |