fixed a less likely fakeclientcommand bug
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401342
This commit is contained in:
parent
84a08ba000
commit
cb57752dba
@ -209,8 +209,9 @@ void ConCmdManager::InternalDispatch()
|
|||||||
* --
|
* --
|
||||||
* Whether or not it goes through the callback is determined by FCVAR_GAMEDLL
|
* Whether or not it goes through the callback is determined by FCVAR_GAMEDLL
|
||||||
*/
|
*/
|
||||||
|
char cmd[300];
|
||||||
|
strncopy(cmd, engine->Cmd_Argv(0), sizeof(cmd));
|
||||||
|
|
||||||
const char *cmd = engine->Cmd_Argv(0);
|
|
||||||
ConCmdInfo *pInfo;
|
ConCmdInfo *pInfo;
|
||||||
if (!sm_trie_retrieve(m_pCmds, cmd, (void **)&pInfo))
|
if (!sm_trie_retrieve(m_pCmds, cmd, (void **)&pInfo))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user