diff options
-rw-r--r-- | devtools/create_titanic/create_titanic_dat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devtools/create_titanic/create_titanic_dat.cpp b/devtools/create_titanic/create_titanic_dat.cpp index 39fb8b8855..3822a9a955 100644 --- a/devtools/create_titanic/create_titanic_dat.cpp +++ b/devtools/create_titanic/create_titanic_dat.cpp @@ -1091,8 +1091,9 @@ void writeStarfieldPoints2() { } void writePhrases(const char *name, const CommonPhrase *phrases) { + outputFile.seek(dataOffset); + for (uint idx = 0; phrases->_str; ++idx, ++phrases) { - outputFile.seek(dataOffset + idx * 4); outputFile.writeString(phrases->_str); outputFile.writeLong(phrases->_dialogueId); outputFile.writeLong(phrases->_roomNum); |