Return version (aka history index) from sim.getSaveID

Makes sense because sim.loadSave has a history argument.
This commit is contained in:
Tamás Bálint Misius 2021-06-05 08:26:39 +02:00
parent 788c9cf9fc
commit 1851677dbe
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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;
}