diff options
Diffstat (limited to 'games/pioneer/save-compat.diff')
-rw-r--r-- | games/pioneer/save-compat.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/pioneer/save-compat.diff b/games/pioneer/save-compat.diff new file mode 100644 index 0000000000..db0f5f247c --- /dev/null +++ b/games/pioneer/save-compat.diff @@ -0,0 +1,13 @@ +--- src/lua/LuaSerializer.cpp.orig 2024-03-16 10:23:00.037921901 +0900 ++++ src/lua/LuaSerializer.cpp 2024-03-16 10:24:18.622366095 +0900 +@@ -413,6 +413,10 @@ + lua_State *l = Lua::manager->GetLuaState(); + LUA_DEBUG_START(l); + ++ // Old savefile with no persistent table. ++ if (!json.count("lua_persistent_json")) ++ return; ++ + const Json &persist = json["lua_persistent_json"]; + + luaL_getsubtable(l, LUA_REGISTRYINDEX, NS_REFTABLE); |