From d620dcdd085ddca34f990588aae1c314917a5d32 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Wed, 16 Dec 2015 19:31:57 +0100 Subject: Moved variables into scope, removed unused variables and fixed variables --- src/UI/SlotArea.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/UI/SlotArea.cpp') 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)) -- cgit v1.2.3