Return version (aka history index) from sim.getSaveID
Makes sense because sim.loadSave has a history argument.
This commit is contained in:
parent
788c9cf9fc
commit
1851677dbe
@ -1831,7 +1831,8 @@ int LuaScriptInterface::simulation_getSaveID(lua_State *l)
|
||||
if (tempSave)
|
||||
{
|
||||
lua_pushinteger(l, tempSave->GetID());
|
||||
return 1;
|
||||
lua_pushinteger(l, tempSave->Version);
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user