Merge pull request #404 from alliedmodders/fix-crash

Fix a regression from the ConCmdManager refactoring that causes a crash using SourceMod commands in the server console.
This commit is contained in:
David Anderson 2015-09-12 22:53:09 -07:00
commit fc947c68f7

View File

@ -136,9 +136,7 @@ void CommandCallback(DISPATCH_ARGS)
EngineArgs args(command);
AutoEnterCommand autoEnterCommand(&args);
if (g_ConCmds.InternalDispatch(sCoreProviderImpl.CommandClient(), &args))
RETURN_META(MRES_SUPERCEDE);
RETURN_META(MRES_IGNORED);
g_ConCmds.InternalDispatch(sCoreProviderImpl.CommandClient(), &args);
}
ConCmdInfo *ConCmdManager::FindInTrie(const char *name)