From 412a10ede3133a6bd06d0975f242a59416c76a56 Mon Sep 17 00:00:00 2001 From: athrxx Date: Tue, 26 Feb 2019 20:04:20 +0100 Subject: KYRA: (EOB1) - fix bug when attacking while invisible (wrong callback function called in EOB1) --- engines/kyra/engine/eobcommon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/kyra/engine/eobcommon.cpp b/engines/kyra/engine/eobcommon.cpp index c7aaf400b1..96cc131767 100644 --- a/engines/kyra/engine/eobcommon.cpp +++ b/engines/kyra/engine/eobcommon.cpp @@ -2004,7 +2004,7 @@ void EoBCoreEngine::useSlotWeapon(int charIndex, int slotIndex, Item item) { int tp = item ? _items[item].type : 0; if (c->effectFlags & 0x40) - removeCharacterEffect(10, charIndex, 1); // remove invisibility effect + removeCharacterEffect(_flags.gameID == GI_EOB1 ? 8 : 10, charIndex, 1); // remove invisibility effect int ep = _itemTypes[tp].extraProperties & 0x7F; int8 inflict = 0; -- cgit v1.2.3