Use GameController::ClearSim in sim.clearSim

Unlike Simulation::clear_sim, this also resets the save info in GameModel, i.e. is equivalent to pressing the 'Erase everything' button.
This commit is contained in:
Tamás Bálint Misius 2021-06-19 21:55:08 +02:00
parent 6bd1289bdd
commit cb52495472
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -1669,8 +1669,7 @@ int LuaScriptInterface::simulation_decoColor(lua_State * l)
int LuaScriptInterface::simulation_clearSim(lua_State * l) int LuaScriptInterface::simulation_clearSim(lua_State * l)
{ {
luacon_sim->clear_sim(); luacon_controller->ClearSim();
Client::Ref().ClearAuthorInfo();
return 0; return 0;
} }