mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-05 10:10:42 +03:00
Assert on concommand hook crash
This commit is contained in:
parent
5e891f85a6
commit
1aff4bb9b9
@ -2742,6 +2742,11 @@ public:
|
|||||||
|
|
||||||
void CScriptConvarAccessor::RegisterCommand( const char *name, HSCRIPT fn, const char *helpString, int flags )
|
void CScriptConvarAccessor::RegisterCommand( const char *name, HSCRIPT fn, const char *helpString, int flags )
|
||||||
{
|
{
|
||||||
|
#if CLIENT_DLL
|
||||||
|
// FIXME: This crashes in engine when used as a hook (dispatched from CScriptConCommand::CommandCallback())
|
||||||
|
Assert( V_stricmp( name, "load" ) != 0 );
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned int hash = Hash(name);
|
unsigned int hash = Hash(name);
|
||||||
int idx = g_ScriptConCommands.Find(hash);
|
int idx = g_ScriptConCommands.Find(hash);
|
||||||
if ( idx == g_ScriptConCommands.InvalidIndex() )
|
if ( idx == g_ScriptConCommands.InvalidIndex() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user