summaryrefslogtreecommitdiff
path: root/storage.py
diff options
context:
space:
mode:
Diffstat (limited to 'storage.py')
-rw-r--r--storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage.py b/storage.py
index 4de818c..8afda66 100644
--- a/storage.py
+++ b/storage.py
@@ -46,7 +46,7 @@ class Storage:
if (item.amount > MAX_AMOUNT - self.storage[index].amount):
return -10
self.storage[index].amount += item.amount
- return 0
+ return index
index = len(self.storage)
self.storage[index] = item