1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-21 23:54:23 +00:00

Fix weird ordering bug in pypy3.

This commit is contained in:
Dale Floer 2020-06-02 10:28:41 -07:00 committed by Stefano Pigozzi
parent e69b3aff5e
commit 3f0c1f05d9

View file

@ -821,7 +821,11 @@ class World:
unknown_town_manager_data = f.read_until(pointers.bestiary) unknown_town_manager_data = f.read_until(pointers.bestiary)
bestiary_kill_count = f.int4() 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_count = f.int4()
bestiary_sighting_data = [f.string() for _ in range(bestiary_sighting_count)] bestiary_sighting_data = [f.string() for _ in range(bestiary_sighting_count)]
bestiary_chat_count = f.int4() bestiary_chat_count = f.int4()