From aaf772f68a11d1deb7897a0cd09c25cda2fd149d Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Tue, 17 Jul 2012 14:33:51 +0000 Subject: Fixed incompatibility to apples c++ compiler... git-svn-id: http://mc-server.googlecode.com/svn/trunk@680 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/items/ItemSlab.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/items/ItemSlab.h') diff --git a/source/items/ItemSlab.h b/source/items/ItemSlab.h index 38b0aa213..9b91530c9 100644 --- a/source/items/ItemSlab.h +++ b/source/items/ItemSlab.h @@ -23,7 +23,8 @@ public: && (Block == a_Item->m_ItemID) //Same slab && ((Meta & 0x7) == (a_Item->m_ItemHealth & 0x7))) //Same Texture { - if(a_Player->GetInventory().RemoveItem(cItem(a_Item->m_ItemID, 1))) + cItem Item(a_Item->m_ItemID, 1); + if(a_Player->GetInventory().RemoveItem(Item)) { a_World->SetBlock(a_X, a_Y, a_Z, Block - 1, Meta); //Block - 1 simple hack to save one if statement return true; -- cgit v1.2.3