summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-16 19:31:57 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-17 10:48:36 +0100
commitd620dcdd085ddca34f990588aae1c314917a5d32 (patch)
treed589a1e5fb4813e100fd377bae9378c37a619370 /src/UI/SlotArea.cpp
parentMerge pull request #2753 from cuberite/pathFix (diff)
downloadcuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.gz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.bz2
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.lz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.xz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.zst
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.zip
Diffstat (limited to '')
-rw-r--r--src/UI/SlotArea.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index c7b8d0987..dc89ff8d4 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -1068,10 +1068,9 @@ void cSlotAreaAnvil::UpdateResult(cPlayer & a_Player)
m_StackSizeToBeUsedInRepair = 0;
int RepairCost = Input.m_RepairCost;
int NeedExp = 0;
- bool IsEnchantBook = false;
if (!SecondInput.IsEmpty())
{
- IsEnchantBook = (SecondInput.m_ItemType == E_ITEM_ENCHANTED_BOOK);
+ bool IsEnchantBook = (SecondInput.m_ItemType == E_ITEM_ENCHANTED_BOOK);
RepairCost += SecondInput.m_RepairCost;
if (Input.IsDamageable() && cItemHandler::GetItemHandler(Input)->CanRepairWithRawMaterial(SecondInput.m_ItemType))