diff options
Diffstat (limited to 'engines/agos/items.cpp')
-rw-r--r-- | engines/agos/items.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agos/items.cpp b/engines/agos/items.cpp index 165af6f797..a911bee5a5 100644 --- a/engines/agos/items.cpp +++ b/engines/agos/items.cpp @@ -391,10 +391,8 @@ int AGOSEngine::wordMatch(Item *item, int16 a, int16 n) { } Item *AGOSEngine::derefItem(uint item) { - if (item >= _itemArraySize) { - debug(1, "derefItem: invalid item %d", item); - return 0; - } + if (item >= _itemArraySize) + error("derefItem: invalid item %d", item); return _itemArrayPtr[item]; } |