aboutsummaryrefslogtreecommitdiff
path: root/devtools/extract_mort
diff options
context:
space:
mode:
authorStrangerke2013-07-19 17:43:55 +0200
committerStrangerke2013-07-19 17:43:55 +0200
commit3d64ccac9c4cfbf477eb3e03273faa255d0bb6d3 (patch)
tree81868d21e085e3c49b34d80780ef3c35b77cd3b0 /devtools/extract_mort
parent72914aafabf88cd7b56ff2a10036e470a8d2f05b (diff)
downloadscummvm-rg350-3d64ccac9c4cfbf477eb3e03273faa255d0bb6d3.tar.gz
scummvm-rg350-3d64ccac9c4cfbf477eb3e03273faa255d0bb6d3.tar.bz2
scummvm-rg350-3d64ccac9c4cfbf477eb3e03273faa255d0bb6d3.zip
MORTEVIELLE: Fix glitch detected by criezy
Diffstat (limited to 'devtools/extract_mort')
-rw-r--r--devtools/extract_mort/extract_mort.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/extract_mort/extract_mort.cpp b/devtools/extract_mort/extract_mort.cpp
index fd6d8848af..159309c0fa 100644
--- a/devtools/extract_mort/extract_mort.cpp
+++ b/devtools/extract_mort/extract_mort.cpp
@@ -322,7 +322,7 @@ static void export_strings(const char *textFilename) {
do {
extractCharacter(ch, indis, point, endFlag, strData);
buffer[charIndex++] = ch;
- if (ch == BUFFER_SIZE) {
+ if (charIndex == BUFFER_SIZE) {
printf("Extracted string exceeded allowed buffer size.\n");
exit(1);
}