History

rework ScriptValue to act like a stack variable rather than a pointer

Heather Anderson committed 5 years ago

Commit 85810221 parent f209c51170 files · +2837 −2594Browse files

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

Unified · Split

assignment-client/src/scripts/EntityScriptServer.cpp+1−1
@@ -452,7 +452,7 @@ void EntityScriptServer::resetEntitiesScriptEngine() { · 451 unmodified lines
452 auto newEngine = newManager->engine();452 auto newEngine = newManager->engine();
453 453
454 auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor);454 auto webSocketServerConstructorValue = newEngine->newFunction(WebSocketServerClass::constructor);
455 newEngine->globalObject()->setProperty("WebSocketServer", webSocketServerConstructorValue);455 newEngine->globalObject().setProperty("WebSocketServer", webSocketServerConstructorValue);
456 456
457 newEngine->registerGlobalObject("SoundCache", DependencyManager::get<SoundCacheScriptingInterface>().data());457 newEngine->registerGlobalObject("SoundCache", DependencyManager::get<SoundCacheScriptingInterface>().data());
458 newEngine->registerGlobalObject("AvatarList", DependencyManager::get<AvatarHashMap>().data());458 newEngine->registerGlobalObject("AvatarList", DependencyManager::get<AvatarHashMap>().data());