This commit is contained in:
6arelyFuture 2022-02-09 00:16:00 +00:00
parent 757a68755b
commit b4fa5527ff
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -7,6 +7,8 @@
#include "command.hpp"
constexpr auto CMD_MAX_NESTING = 8;
namespace command
{
std::unordered_map<std::string, std::function<void(params&)>> handlers;
@ -25,6 +27,7 @@ namespace command
params::params()
: nesting_(game::sv_cmd_args->nesting)
{
assert(game::sv_cmd_args->nesting < CMD_MAX_NESTING);
}
int params::size() const