From 3b15924f71a3271db6857f86f54ad45b1546190a Mon Sep 17 00:00:00 2001 From: crc Date: Fri, 18 Dec 2020 19:21:43 +0000 Subject: [PATCH] nga-python: fix a bug in the dictionary population code FossilOrigin-Name: b1ac26066a2e64aaa7d1b929b7993844d330a244183b8a39911b97596a3380e7 --- vm/nga-python/retro.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm/nga-python/retro.py b/vm/nga-python/retro.py index 0c73f27..5c6cb3d 100644 --- a/vm/nga-python/retro.py +++ b/vm/nga-python/retro.py @@ -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