mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 20:12:50 +02:00
Return version (aka history index) from sim.getSaveID
Makes sense because sim.loadSave has a history argument.
This commit is contained in:
@@ -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