aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2018-01-31 20:58:02 +0000
committerThierry Crozat2018-01-31 20:58:02 +0000
commit4c857e1706a28a4374344c87162b6de54a36489f (patch)
tree6a70b8837bdd480a18a07d5a8e306ab6b859324a /engines
parentbab0bf2b1eab75e8575bb87bdecadf52fbe05ec9 (diff)
downloadscummvm-rg350-4c857e1706a28a4374344c87162b6de54a36489f.tar.gz
scummvm-rg350-4c857e1706a28a4374344c87162b6de54a36489f.tar.bz2
scummvm-rg350-4c857e1706a28a4374344c87162b6de54a36489f.zip
SUPERNOVA: Fix incorrect sanity check for debug command
This was reported by coverity (CID 1385537).
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/console.cpp b/engines/supernova/console.cpp
index ee1905a3ce..4dc7f04794 100644
--- a/engines/supernova/console.cpp
+++ b/engines/supernova/console.cpp
@@ -86,7 +86,7 @@ bool Console::cmdList(int argc, const char **argv) {
}
bool Console::cmdInventory(int argc, const char **argv) {
- if (argc != 2 || argc != 3) {
+ if (argc != 2 && argc != 3) {
debugPrintf("Usage: inventory [list][add/remove [object]]");
return true;
}