Lua Script Sandbox - GUI part

This commit is contained in:
Robin Gareus 2017-08-09 16:00:35 +02:00
parent 0191a9c4c2
commit d0553753af
2 changed files with 6 additions and 3 deletions

View file

@ -199,6 +199,7 @@ void LuaWindow::reinit_lua ()
delete lua;
lua = new LuaState();
lua->Print.connect (sigc::mem_fun (*this, &LuaWindow::append_text));
lua->sandbox (false);
lua_State* L = lua->getState();
LuaInstance::register_classes (L);