aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/esieequest/game/items/Inventory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/esieequest/game/items/Inventory.java b/src/esieequest/game/items/Inventory.java
index 6bbda23..04f5a0b 100644
--- a/src/esieequest/game/items/Inventory.java
+++ b/src/esieequest/game/items/Inventory.java
@@ -150,9 +150,7 @@ public class Inventory implements SerialisableList {
150 * @return the Item 150 * @return the Item
151 */ 151 */
152 public Item takeItem(final String itemName) { 152 public Item takeItem(final String itemName) {
153 final Item item = this.getItem(itemName); 153 return this.items.remove(itemName);
154 this.removeItem(item);
155 return item;
156 } 154 }
157 155
158 /** 156 /**