nga-python: fix a bug in the dictionary population code

FossilOrigin-Name: b1ac26066a2e64aaa7d1b929b7993844d330a244183b8a39911b97596a3380e7
This commit is contained in:
crc 2020-12-18 19:21:43 +00:00
parent 8eba61405d
commit 3b15924f71

View file

@ -114,7 +114,8 @@ class Retro:
header = self.memory[2]
while header != 0:
named = self.extract_string(header + 3)
Dictionary[named] = header
if not named in Dictionary:
Dictionary[named] = header
header = self.memory[header]
return Dictionary