diff --git a/source/core/inputstate.cpp b/source/core/inputstate.cpp index 80e856c75..760c3f9a4 100644 --- a/source/core/inputstate.cpp +++ b/source/core/inputstate.cpp @@ -280,6 +280,7 @@ CCMD(slot) if (argv.argc() != 2) { Printf("slot : select a weapon from the given slot (1-%d)", max); + return; } auto slot = atoi(argv[1]); @@ -310,6 +311,7 @@ CCMD(useitem) if (argv.argc() != 2) { Printf("useitem : activates an inventory item (1-%d)", max); + return; } auto slot = atoi(argv[1]);