From 2b8cb1c1f09d1e7b946cff3d6320da8026208e6e Mon Sep 17 00:00:00 2001 From: athrxx Date: Wed, 17 Apr 2013 22:31:29 +0200 Subject: KYRA: (EOB) - silence warning about improper use of negative value in gui_eob.cpp --- engines/kyra/gui_eob.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/kyra/gui_eob.cpp b/engines/kyra/gui_eob.cpp index a2133802bd..9b4c09d7f4 100644 --- a/engines/kyra/gui_eob.cpp +++ b/engines/kyra/gui_eob.cpp @@ -1300,24 +1300,24 @@ void EoBCoreEngine::gui_processWeaponSlotClickRight(int charIndex, int slotIndex case 14: // Potion - usePotion(charIndex, wslot); + usePotion(charIndex, slotIndex); break; case 18: - useWand(charIndex, wslot); + useWand(charIndex, slotIndex); break; case 19: // eob2 horn - useHorn(charIndex, wslot); + useHorn(charIndex, slotIndex); break; case 20: if (vl == 1) inflictCharacterDamage(charIndex, 200); else - useMagicScroll(charIndex, 55, wslot); - deleteInventoryItem(charIndex, wslot); + useMagicScroll(charIndex, 55, slotIndex); + deleteInventoryItem(charIndex, slotIndex); break; default: -- cgit v1.2.3