'Sandboxed' property isn't properly propagated to child frames

refs #12247
This commit is contained in:
Gunnar Beutner 2016-07-29 14:11:52 +02:00
parent aaa4878017
commit 546bdbcf6a
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ boost::thread_specific_ptr<std::stack<ScriptFrame *> > ScriptFrame::m_ScriptFram
ScriptFrame::ScriptFrame(void) ScriptFrame::ScriptFrame(void)
: Locals(new Dictionary()), Self(ScriptGlobal::GetGlobals()), Sandboxed(false), Depth(0) : Locals(new Dictionary()), Self(ScriptGlobal::GetGlobals()), Sandboxed(false), Depth(0)
{ {
std::stack<ScriptFrame *> *frames = m_ScriptFrames.get();
if (frames && !frames->empty())
Sandboxed = frames->top()->Sandboxed;
PushFrame(this); PushFrame(this);
} }