From 10d78bd93d7d8dc802b3d7a445b004545fe141d3 Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Sat, 29 Dec 2012 12:20:33 +0000 Subject: Fixed compilation error in BlockCauldron.h on Linux git-svn-id: http://mc-server.googlecode.com/svn/trunk@1117 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockCauldron.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/Blocks/BlockCauldron.h b/source/Blocks/BlockCauldron.h index c8e571623..360604f85 100644 --- a/source/Blocks/BlockCauldron.h +++ b/source/Blocks/BlockCauldron.h @@ -31,7 +31,8 @@ public: a_World->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, 3 ); cItem Item(a_Player->GetEquippedItem().m_ItemType, 1); a_Player->GetInventory().RemoveItem(Item); - a_Player->GetInventory().AddItem(cItem(E_ITEM_BUCKET, 1, 0)); + cItem NewItem(E_ITEM_BUCKET, 1); + a_Player->GetInventory().AddItem(NewItem); break; } case E_ITEM_GLASS_BOTTLE: @@ -41,7 +42,8 @@ public: a_World->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, --Meta ); cItem Item(a_Player->GetEquippedItem().m_ItemType, 1); a_Player->GetInventory().RemoveItem(Item); - a_Player->GetInventory().AddItem(cItem(E_ITEM_POTIONS, 1, 0)); + cItem NewItem(E_ITEM_POTIONS, 1, 0); + a_Player->GetInventory().AddItem(NewItem); } break; } -- cgit v1.2.3