summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-08-22 15:29:24 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-08-22 15:29:24 +0100
commit23b900a3359510a3dba34e210bd8ab9b0965e6d5 (patch)
tree59656c5086c5b02a3f659c432758d5a0788675fd
parentcd9ac58f45f5e29b99917269f48eb7098aee7e6f (diff)
downloadmanamarket-23b900a3359510a3dba34e210bd8ab9b0965e6d5.tar.gz
manamarket-23b900a3359510a3dba34e210bd8ab9b0965e6d5.tar.bz2
manamarket-23b900a3359510a3dba34e210bd8ab9b0965e6d5.tar.xz
manamarket-23b900a3359510a3dba34e210bd8ab9b0965e6d5.zip
Pretty horrible bug, was altering the inventory state when checking.
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index db30be3..88fe85f 100755
--- a/main.py
+++ b/main.py
@@ -794,7 +794,7 @@ def main():
player_node.inventory[item].itemId, item, player_node.inventory[item].amount)
# Check the inventory state and the amount of money match the information saved.
- test_node = player_node.inventory
+ test_node = player_node.inventory.copy()
for elem in sale_tree.root:
item_found = False
for item in test_node: