diff options
-rw-r--r-- | devtools/extract_mort/extract_mort.cpp | 2 |
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); } |