History

Fix bad ctor call causing build failure

Ryan Huffman committed 9 years ago

Commit f6a03731 parent 9282f551 file · +1 −1Browse files

Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+1−1
@@ -210,7 +210,7 @@ void EntityScriptServer::selectAudioFormat(const QString& selectedCodecName) { · 209 unmodified lines
210 210
211void EntityScriptServer::resetEntitiesScriptEngine() {211void EntityScriptServer::resetEntitiesScriptEngine() {
212 auto engineName = QString("Entities %1").arg(++_entitiesScriptEngineCount);212 auto engineName = QString("Entities %1").arg(++_entitiesScriptEngineCount);
213 auto newEngine = QSharedPointer<ScriptEngine>(new ScriptEngine(NO_SCRIPT, engineName));213 auto newEngine = QSharedPointer<ScriptEngine>(new ScriptEngine(ScriptEngine::ENTITY_SERVER_SCRIPT, NO_SCRIPT, engineName));
214 214
215 auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor);215 auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor);
216 newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue);216 newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue);