Fixed a crash related to VScript custom console commands

This commit is contained in:
Blixibon 2021-03-12 11:06:46 -06:00
parent c7657b1547
commit 36a459d21c

View File

@ -2176,6 +2176,7 @@ public:
{
m_cmd = new ConCommand( name, this, helpString, flags, 0 );
m_hCallback = fn;
m_hCompletionCallback = NULL;
m_nCmdNameLen = V_strlen(name) + 1;
Assert( m_nCmdNameLen - 1 <= 128 );