diff --git a/src/mudlib/zmachine/zcpu.py b/src/mudlib/zmachine/zcpu.py index 44ca97c..3cc67fb 100644 --- a/src/mudlib/zmachine/zcpu.py +++ b/src/mudlib/zmachine/zcpu.py @@ -670,6 +670,8 @@ class ZCpu: word_str, dict_addr = tokens[i] # Find word position in text pos = text.find(word_str, offset) + if pos == -1: + pos = offset # fallback: best guess position word_len = len(word_str) base = parse_buffer_addr + 2 + (i * 4) self._memory.write_word(base, dict_addr)