- added missing returns in the failure cases of useitem and slot CCMDs.

This commit is contained in:
Christoph Oelckers 2022-11-10 07:41:20 +01:00
parent a8585d72c7
commit 6a6e9299ca

View file

@ -280,6 +280,7 @@ CCMD(slot)
if (argv.argc() != 2)
{
Printf("slot <weaponslot>: 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 <itemnum>: activates an inventory item (1-%d)", max);
return;
}
auto slot = atoi(argv[1]);