summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py4
1 files changed, 2 insertions, 2 deletions
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):