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

Fixed bug in NPC parsing.

This commit is contained in:
Dale Floer 2020-05-31 00:01:24 -07:00 committed by Stefano Pigozzi
parent e4d06c2e55
commit 257623e09a

View file

@ -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,