aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2013-04-17 22:31:29 +0200
committerathrxx2013-04-18 16:10:55 +0200
commit2b8cb1c1f09d1e7b946cff3d6320da8026208e6e (patch)
tree1cb92ab6d68e82b217c362f00321a25b4745ac1f
parent2f6d47059ba8c63d0f8e2f52e5498cab8b9f07bc (diff)
downloadscummvm-rg350-2b8cb1c1f09d1e7b946cff3d6320da8026208e6e.tar.gz
scummvm-rg350-2b8cb1c1f09d1e7b946cff3d6320da8026208e6e.tar.bz2
scummvm-rg350-2b8cb1c1f09d1e7b946cff3d6320da8026208e6e.zip
KYRA: (EOB) - silence warning about improper use of negative value in gui_eob.cpp
-rw-r--r--engines/kyra/gui_eob.cpp10
1 files 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: