diff options
Diffstat (limited to 'engines/sci/engine/kparse.cpp')
-rw-r--r-- | engines/sci/engine/kparse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kparse.cpp b/engines/sci/engine/kparse.cpp index f85f33e3e8..d3bf2d72e9 100644 --- a/engines/sci/engine/kparse.cpp +++ b/engines/sci/engine/kparse.cpp @@ -188,7 +188,7 @@ reg_t kSetSynonyms(EngineState *s, int argc, reg_t *argv) { numSynonyms = s->_segMan->getScript(seg)->getSynonymsNr(); if (numSynonyms) { - const byte *synonyms = s->_segMan->getScript(seg)->getSynonyms(); + const SciSpan<const byte> &synonyms = s->_segMan->getScript(seg)->getSynonyms(); if (synonyms) { debugC(kDebugLevelParser, "Setting %d synonyms for script.%d", @@ -202,8 +202,8 @@ reg_t kSetSynonyms(EngineState *s, int argc, reg_t *argv) { } else for (int i = 0; i < numSynonyms; i++) { synonym_t tmp; - tmp.replaceant = READ_LE_UINT16(synonyms + i * 4); - tmp.replacement = READ_LE_UINT16(synonyms + i * 4 + 2); + tmp.replaceant = synonyms.getUint16LEAt(i * 4); + tmp.replacement = synonyms.getUint16LEAt(i * 4 + 2); voc->addSynonym(tmp); } } else |