fix bug of shell having a copy of engine instead of reference

This commit is contained in:
Lendemor 2018-05-22 01:03:20 +02:00
parent d8f52277ed
commit f2ecf2b9cc

View File

@ -40,7 +40,7 @@ ScriptNode::ScriptNode()
void ScriptNode::update(){ void ScriptNode::update(){
static bool test = true; static bool test = true;
if(test && getScene() != nullptr){ if(test && getScene() != nullptr){
m_script["engine"] = getEngine(); m_script["engine"] = &getEngine();
test=false; test=false;
} }
} }