cmd: base_cmd: fix inconsistency between linked list and hash map

This commit is contained in:
Alibek Omarov 2018-10-10 00:42:06 +03:00
parent abda3b52ab
commit 9e618ce3e1

View File

@ -1112,6 +1112,10 @@ void Cmd_Unlink( int group )
continue;
}
#if defined(XASH_HASHED_VARS)
BaseCmd_Remove( HM_CMD, cmd->name );
#endif
*prev = cmd->next;
if( cmd->name ) Mem_Free( cmd->name );