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

@ -147,6 +147,7 @@ ConsoleFunction(aiConnect, S32 , 2, 20, "(...)"
// Make sure and leav args[1] empty.
const char* args[21];
args[0] = "onConnect";
args[1] = NULL; // Filled in later
for (S32 i = 1; i < argc; i++)
args[i + 1] = argv[i];