diff --git a/source/graphics/MapReader.cpp b/source/graphics/MapReader.cpp index 47b6478e04..ba1065d15c 100644 --- a/source/graphics/MapReader.cpp +++ b/source/graphics/MapReader.cpp @@ -1203,7 +1203,7 @@ int CMapReader::ParseEnvironment() #define GET_ENVIRONMENT_PROPERTY(val, prop, out)\ if (!pSimulation2->GetScriptInterface().GetProperty(val, #prop, out))\ - LOGWARNING(L"CMapReader::ParseEnvironment() failed to get '%hs' property", #prop);\ + LOGWARNING(L"CMapReader::ParseEnvironment() failed to get '%hs' property", #prop); CScriptValRooted envObj; GET_ENVIRONMENT_PROPERTY(m_MapData.get(), Environment, envObj) @@ -1281,7 +1281,7 @@ int CMapReader::ParseCamera() #define GET_CAMERA_PROPERTY(val, prop, out)\ if (!pSimulation2->GetScriptInterface().GetProperty(val, #prop, out))\ - LOGWARNING(L"CMapReader::ParseCamera() failed to get '%hs' property", #prop);\ + LOGWARNING(L"CMapReader::ParseCamera() failed to get '%hs' property", #prop); CScriptValRooted cameraObj; GET_CAMERA_PROPERTY(m_MapData.get(), Camera, cameraObj) diff --git a/source/scriptinterface/ScriptInterface.cpp b/source/scriptinterface/ScriptInterface.cpp index 745863b63e..f29012f1af 100644 --- a/source/scriptinterface/ScriptInterface.cpp +++ b/source/scriptinterface/ScriptInterface.cpp @@ -434,11 +434,11 @@ ScriptInterface_impl::ScriptInterface_impl(const char* nativeScopeName, const sh // hooks are incompatible with the JIT) #if !ENABLE_SCRIPT_PROFILING options |= JSOPTION_METHODJIT; -#endif // Some other JIT flags to experiment with: options |= JSOPTION_JIT; options |= JSOPTION_PROFILING; +#endif JS_SetOptions(m_cx, options);