Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -210,7 +210,7 @@ void EntityScriptServer::selectAudioFormat(const QString& selectedCodecName) { · 209 unmodified lines | ||
| 210 | 210 | |
| 211 | 211 | void EntityScriptServer::resetEntitiesScriptEngine() { |
| 212 | 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 | 215 | auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor); |
| 216 | 216 | newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue); |