aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: