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,6 +114,7 @@ class Retro:
header = self.memory[2] header = self.memory[2]
while header != 0: while header != 0:
named = self.extract_string(header + 3) named = self.extract_string(header + 3)
if not named in Dictionary:
Dictionary[named] = header Dictionary[named] = header
header = self.memory[header] header = self.memory[header]
return Dictionary return Dictionary