mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 19:00:57 +00:00
GLK: COMPREHEND: Properly offset the _strings2 array for OO-Topos
This commit is contained in:
parent
e6674e1cb8
commit
df3c64a9ef
@ -668,7 +668,11 @@ void GameData::load_extra_string_file(const StringFile &stringFile) {
|
|||||||
|
|
||||||
void GameData::load_extra_string_files() {
|
void GameData::load_extra_string_files() {
|
||||||
_strings2.clear();
|
_strings2.clear();
|
||||||
_strings2.reserve(STRING_FILE_COUNT * _stringFiles.size());
|
_strings2.reserve(STRING_FILE_COUNT * _stringFiles.size() + 1);
|
||||||
|
|
||||||
|
// TODO: Is this needed for other than OO-Topos?
|
||||||
|
if (_comprehendVersion == 2)
|
||||||
|
_strings2.push_back("");
|
||||||
|
|
||||||
for (uint i = 0; i < _stringFiles.size(); i++)
|
for (uint i = 0; i < _stringFiles.size(); i++)
|
||||||
load_extra_string_file(_stringFiles[i]);
|
load_extra_string_file(_stringFiles[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user