Remove command first then erase key
This commit is contained in:
parent
7b3ba9d3d4
commit
880c348827
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user