diff --git a/src/lua/LuaScriptInterface.cpp b/src/lua/LuaScriptInterface.cpp index 8c2e37299..ed135e7ad 100644 --- a/src/lua/LuaScriptInterface.cpp +++ b/src/lua/LuaScriptInterface.cpp @@ -1669,8 +1669,7 @@ int LuaScriptInterface::simulation_decoColor(lua_State * l) int LuaScriptInterface::simulation_clearSim(lua_State * l) { - luacon_sim->clear_sim(); - Client::Ref().ClearAuthorInfo(); + luacon_controller->ClearSim(); return 0; }