diff --git a/src/module/command.cpp b/src/module/command.cpp index e2a1860..6cf152e 100644 --- a/src/module/command.cpp +++ b/src/module/command.cpp @@ -178,8 +178,8 @@ void command::pre_destroy() { for (const auto& [key, val] : command::handlers) { - handlers.erase(key); game::native::Cmd_RemoveCommand(key.data()); + handlers.erase(key); } command::allocator_.clear();