mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Ensure console function arg arrays are initialised.
This commit is contained in:
parent
b507dc9555
commit
156aacf8b8
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue