Fix custom can_move settings being reset after using tpt.el

This commit is contained in:
jacob1 2023-09-25 20:15:40 -04:00
parent ef04068a85
commit d1a4c6ad85
No known key found for this signature in database
GPG Key ID: 4E58A32D510E1995

View File

@ -249,7 +249,8 @@ int luacon_elementwrite(lua_State* l)
LuaScriptInterface::LuaSetProperty(l, prop, propertyAddress, 3);
luacon_model->BuildMenus();
luacon_sim->init_can_move();
auto *luacon_ci = static_cast<LuaScriptInterface *>(commandInterface);
luacon_ci->custom_init_can_move();
std::fill(&luacon_ren->graphicscache[0], &luacon_ren->graphicscache[0] + PT_NUM, gcache_item());
return 0;