fix goal build error and a few c++ warnings (#1044)

This commit is contained in:
water111
2022-01-02 16:10:09 -05:00
committed by GitHub
parent b13a0ee755
commit 6e4b34be0b
6 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ GameTextResult process_game_text(ObjectFileData& data, GameTextVersion version)
auto string_start = (text_label.offset / 4) - 1;
// 8 for type tag and length fields, 1 for null char.
for (int j = 0, m = align16(8 + 1 + (int)text.length()) / 4;
j < m && string_start + j < read_words.size(); j++) {
j < m && string_start + j < (int)read_words.size(); j++) {
read_words.at(string_start + j)++;
}
}