From 51f924562b2a1e743fa8996c75fdf489aa51eef6 Mon Sep 17 00:00:00 2001 From: Rawng Date: Sat, 27 Sep 2014 02:34:37 -0400 Subject: Fix variable names in innermost loop --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index 8182768..fb0be37 100644 --- a/utils.py +++ b/utils.py @@ -62,12 +62,12 @@ class ItemDB: item_struct = Item() item_struct.name = item3.get('name') if item3.get('weight'): - item_struct.weight = item.get('weight') + item_struct.weight = item3.get('weight') else: item_struct.weight = 0 if item3.get('type'): item_struct.type = item3.get('type') - item_struct.description = item.get('description') + item_struct.description = item3.get('description') self.item_names[int(item3.get('id'))] = item_struct def getItem(self, item_id): -- cgit v1.2.3-70-g09d2