diff options
Diffstat (limited to 'engines/parallaction/debug.cpp')
-rw-r--r-- | engines/parallaction/debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/parallaction/debug.cpp b/engines/parallaction/debug.cpp index 95091789a9..c94d0b4a69 100644 --- a/engines/parallaction/debug.cpp +++ b/engines/parallaction/debug.cpp @@ -116,7 +116,7 @@ bool Debugger::Cmd_Give(int argc, const char **argv) { DebugPrintf("give <item name>\n"); } else { int index = _vm->_objectsNames->lookup(argv[1]); - if (index != -1) + if (index != Table::notFound) _vm->addInventoryItem(index + 4); else DebugPrintf("invalid item name '%s'\n", argv[1]); |