From def8f859bac7d2256108d728b72c54915d3b6f1b Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 15 Jun 2013 08:00:24 +0000 Subject: Fixed Linux compilation git-svn-id: http://mc-server.googlecode.com/svn/trunk@1589 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BlockEntities/HopperEntity.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/BlockEntities/HopperEntity.cpp b/source/BlockEntities/HopperEntity.cpp index 68974fdd3..fb2e36aa3 100644 --- a/source/BlockEntities/HopperEntity.cpp +++ b/source/BlockEntities/HopperEntity.cpp @@ -279,7 +279,8 @@ bool cHopperEntity::MoveItemsFromGrid(cItemGrid & a_Grid) /// Moves one of the specified itemstack into this hopper. Returns true if contents have changed. Doesn't change the itemstack. bool cHopperEntity::MoveItemsFromSlot(const cItem & a_ItemStack, bool a_AllowNewStacks) { - if (m_Contents.AddItem(a_ItemStack.CopyOne(), a_AllowNewStacks) > 0) + cItem One(a_ItemStack.CopyOne()); + if (m_Contents.AddItem(One, a_AllowNewStacks) > 0) { return true; } -- cgit v1.2.3