diff options
Diffstat (limited to 'source/Blocks')
-rw-r--r-- | source/Blocks/BlockCauldron.h | 6 |
1 files changed, 4 insertions, 2 deletions
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;
}
|