summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Entities/Player.cpp')
-rw-r--r--src/Entities/Player.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index 756410989..b3bb1072e 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -628,13 +628,11 @@ void cPlayer::FinishEating(void)
}
ItemHandler->OnFoodEaten(m_World, this, &Item);
- GetInventory().RemoveOneEquippedItem();
-
// if the food is mushroom soup, return a bowl to the inventory
if (Item.m_ItemType == E_ITEM_MUSHROOM_SOUP)
{
- cItem EmptyBowl(E_ITEM_BOWL);
- GetInventory().AddItem(EmptyBowl, true, true);
+ GetInventory().RemoveOneEquippedItem();
+ GetInventory().AddItem(cItem(E_ITEM_BOWL), true, true);
}
}