aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/xeen/party.cpp')
-rw-r--r--engines/xeen/party.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/xeen/party.cpp b/engines/xeen/party.cpp
index 31a43be0a4..d92a4952cc 100644
--- a/engines/xeen/party.cpp
+++ b/engines/xeen/party.cpp
@@ -1439,8 +1439,8 @@ bool Party::giveExt(int mode1, uint val1, int mode2, uint val2, int mode3, uint
Sound &sound = *g_vm->_sound;
Character &c = _itemsCharacter;
- if (intf._objNumber && !scripts._animCounter) {
- MazeObject &obj = map._mobData._objects[intf._objNumber - 1];
+ if (intf._objNumber != -1 && !scripts._animCounter) {
+ MazeObject &obj = map._mobData._objects[intf._objNumber];
switch (obj._spriteId) {
case 15:
if (!files._ccNum)