From 3f0c1f05d9e42fdd1085133640d9a3408e2c1970 Mon Sep 17 00:00:00 2001 From: Dale Floer Date: Tue, 2 Jun 2020 10:28:41 -0700 Subject: [PATCH] Fix weird ordering bug in pypy3. --- lihzahrd/world.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lihzahrd/world.py b/lihzahrd/world.py index ec3d985..005edfa 100644 --- a/lihzahrd/world.py +++ b/lihzahrd/world.py @@ -821,7 +821,11 @@ class World: unknown_town_manager_data = f.read_until(pointers.bestiary) bestiary_kill_count = f.int4() - bestiary_kill_data = {f.string(): f.int4() for _ in range(bestiary_kill_count)} + bestiary_kill_data = {} + for _ in range(bestiary_kill_count): + beast = f.string() + beast_count = f.int4() + bestiary_kill_data[beast] = beast_count bestiary_sighting_count = f.int4() bestiary_sighting_data = [f.string() for _ in range(bestiary_sighting_count)] bestiary_chat_count = f.int4()