diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
commit | 1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb (patch) | |
tree | d589a1e5fb4813e100fd377bae9378c37a619370 /src/UI/SlotArea.cpp | |
parent | Merge pull request #2753 from cuberite/pathFix (diff) | |
parent | Moved variables into scope, removed unused variables and fixed variables (diff) | |
download | cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.gz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.bz2 cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.lz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.xz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.zst cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.zip |
Diffstat (limited to 'src/UI/SlotArea.cpp')
-rw-r--r-- | src/UI/SlotArea.cpp | 3 |
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)) |