Skip to content

Commit fd87e83

Browse files
committed
Fixed crash from ServerCommand registration without Help text.
1 parent 3a610a8 commit fd87e83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/modules/commands/server_commands_wrap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ CServerCommandManager* CServerCommandManager::CreateCommand(const char* szName,
128128
// Unregister the old command
129129
g_pCVar->UnregisterConCommand(pConCommand);
130130
}
131-
else
131+
else if( szHelpText != NULL )
132132
{
133133
// Store the given help text
134134
szHelpTextCopy = strdup(szHelpText);

0 commit comments

Comments
 (0)