summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-06-04 12:12:06 +0200
committerworktycho <work.tycho@gmail.com>2014-06-04 12:12:06 +0200
commit98c575ebc276b9825c3da186b8b560811e855da6 (patch)
treef34573fcf9ccb53e3dcb2b7e88d88c98fcff057f /src
parentRemoved unused field test (diff)
downloadcuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar.gz
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar.bz2
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar.lz
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar.xz
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.tar.zst
cuberite-98c575ebc276b9825c3da186b8b560811e855da6.zip
Diffstat (limited to 'src')
-rw-r--r--src/UI/SlotArea.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 59a6384b1..682f20c00 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -625,7 +625,8 @@ void cSlotAreaCrafting::HandleCraftItem(const cItem & a_Result, cPlayer & a_Play
cSlotAreaAnvil::cSlotAreaAnvil(cAnvilWindow & a_ParentWindow) :
cSlotAreaTemporary(3, a_ParentWindow),
- m_MaximumCost(0)
+ m_MaximumCost(0),
+ m_StackSizeToBeUsedInRepair(0);
{
}
@@ -796,6 +797,7 @@ void cSlotAreaAnvil::OnTakeResult(cPlayer & a_Player)
{
cItem NewSecondItem(*Item);
NewSecondItem.m_ItemCount -= m_StackSizeToBeUsedInRepair;
+ m_StackSizeToBeUsedInRepair = 0;
SetSlot(1, a_Player, NewSecondItem);
}
else