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

View File

@@ -1831,7 +1831,8 @@ int LuaScriptInterface::simulation_getSaveID(lua_State *l)
if (tempSave) if (tempSave)
{ {
lua_pushinteger(l, tempSave->GetID()); lua_pushinteger(l, tempSave->GetID());
return 1; lua_pushinteger(l, tempSave->Version);
return 2;
} }
return 0; return 0;
} }