summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemBottle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Items/ItemBottle.h')
-rw-r--r--src/Items/ItemBottle.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemBottle.h b/src/Items/ItemBottle.h
index 092d5d81a..b261937e5 100644
--- a/src/Items/ItemBottle.h
+++ b/src/Items/ItemBottle.h
@@ -84,8 +84,7 @@ public:
}
a_Player->GetInventory().RemoveOneEquippedItem();
- cItem NewItem(E_ITEM_POTION, 1, 0);
- a_Player->GetInventory().AddItem(NewItem);
+ a_Player->GetInventory().AddItem(cItem(E_ITEM_POTION));
return true;
}
} ;