From 6a6e9299caa74a7eb6a8c0487e59c0cbf3cf2e38 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Nov 2022 07:41:20 +0100 Subject: [PATCH] - added missing returns in the failure cases of useitem and slot CCMDs. --- source/core/inputstate.cpp | 2 ++ 1 file changed, 2 insertions(+) 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]);