Ensure console function arg arrays are initialised.

This commit is contained in:
Daniel Buckmaster 2014-10-16 00:29:16 +11:00
parent b507dc9555
commit 156aacf8b8
2 changed files with 2 additions and 0 deletions

View file

@ -324,6 +324,7 @@ void GameConnection::onConnectionEstablished(bool isInitiator)
const char *argv[MaxConnectArgs + 2];
argv[0] = "onConnect";
argv[1] = NULL; // Filled in later
for(U32 i = 0; i < mConnectArgc; i++)
argv[i + 2] = mConnectArgv[i];
// NOTE: Need to fallback to Con::execute() as IMPLEMENT_CALLBACK does not