summaryrefslogtreecommitdiffstats
path: root/source/Items/ItemSpawnEgg.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Items/ItemSpawnEgg.h')
-rw-r--r--source/Items/ItemSpawnEgg.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/Items/ItemSpawnEgg.h b/source/Items/ItemSpawnEgg.h
index c6fa363bb..7f5b253ef 100644
--- a/source/Items/ItemSpawnEgg.h
+++ b/source/Items/ItemSpawnEgg.h
@@ -38,8 +38,7 @@ public:
if (a_Player->GetGameMode() != 1)
{
// The mob was spawned, "use" the item:
- cItem Equipped(a_Player->GetEquippedItem());
- a_Player->GetInventory().RemoveItem(Equipped);
+ a_Player->GetInventory().RemoveOneEquippedItem();
}
return true;
}