From 257623e09ac3bd8feeb917dc03a618cce8763816 Mon Sep 17 00:00:00 2001 From: Dale Floer Date: Sun, 31 May 2020 00:01:24 -0700 Subject: [PATCH] Fixed bug in NPC parsing. --- lihzahrd/world.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lihzahrd/world.py b/lihzahrd/world.py index 12306ae..fdac0ae 100644 --- a/lihzahrd/world.py +++ b/lihzahrd/world.py @@ -689,7 +689,7 @@ class World: npc_home = None npc_flags = f.bits() - npc_variation_index = 0 if npc_flags[0] else f.int4() + npc_variation_index = f.int4() if npc_flags[0] else 0 npc = NPC(type_=npc_type, name=npc_name,