diff options
author | athrxx | 2019-02-26 20:04:20 +0100 |
---|---|---|
committer | athrxx | 2019-03-06 20:48:25 +0100 |
commit | 412a10ede3133a6bd06d0975f242a59416c76a56 (patch) | |
tree | 0707efc90f0d303cb110cf27e45d233504ec3fe8 /engines/kyra/engine/eobcommon.cpp | |
parent | 0be1fa53dbc24868abb51a700f15d2af5a12ab37 (diff) | |
download | scummvm-rg350-412a10ede3133a6bd06d0975f242a59416c76a56.tar.gz scummvm-rg350-412a10ede3133a6bd06d0975f242a59416c76a56.tar.bz2 scummvm-rg350-412a10ede3133a6bd06d0975f242a59416c76a56.zip |
KYRA: (EOB1) - fix bug when attacking while invisible
(wrong callback function called in EOB1)
Diffstat (limited to 'engines/kyra/engine/eobcommon.cpp')
-rw-r--r-- | engines/kyra/engine/eobcommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |