Remove value constructors for ConsoleValueRef & fix callbacks which use them. Fixes issue #1289

This commit is contained in:
James Urquhart 2015-05-06 23:28:46 +01:00 committed by Daniel Buckmaster
parent eb0351139e
commit 12d435c341
5 changed files with 17 additions and 43 deletions

View file

@ -999,8 +999,10 @@ bool GameConnection::readDemoStartBlock(BitStream *stream)
void GameConnection::demoPlaybackComplete()
{
static ConsoleValueRef demoPlaybackArgv[1] = { "demoPlaybackComplete" };
Sim::postCurrentEvent(Sim::getRootGroup(), new SimConsoleEvent(1, demoPlaybackArgv, false));
static const char* demoPlaybackArgv[1] = { "demoPlaybackComplete" };
static StringStackConsoleWrapper demoPlaybackCmd(1, demoPlaybackArgv);
Sim::postCurrentEvent(Sim::getRootGroup(), new SimConsoleEvent(demoPlaybackCmd.argc, demoPlaybackCmd.argv, false));
Parent::demoPlaybackComplete();
}