Skip to content

Commit

Permalink
MORTEVIELLE: Minor bugfixes to string extraction tool
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster authored and Strangerke committed Apr 6, 2012
1 parent 1d4ea48 commit 35e1987
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devtools/extract_mort/extract_mort.cpp
Expand Up @@ -296,6 +296,9 @@ static void export_strings(const char *textFilename) {
printf("Extracted string exceeded allowed buffer size.\n");
exit(1);
}

if (indis >= (txxInp.size() / 2))
endFlag = true;
} while (!endFlag);

// Write out the string
Expand Down Expand Up @@ -347,7 +350,7 @@ static void import_strings(const char *textFilename) {
// Write out the compressed data
if (point != 16)
++indis;
txxInp.write(strData, indis);
txxInp.write(strData, indis * 2);

// Close the files
txxInp.close();
Expand Down

0 comments on commit 35e1987

Please sign in to comment.