Skip to content

Commit

Permalink
save on every screen load instead of screen change
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Oct 31, 2021
1 parent d8c16fe commit 0733785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_api/script/lua_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ bool LuaBackend::update()
}
case ON::SAVE:
{
if (g_state->screen != state.screen && g_state->screen != (int)ON::OPTIONS && g_state->screen_last != (int)ON::OPTIONS)
if (g_state->loading != state.loading && g_state->loading == 1)
{
handle_function(callback.func, SaveContext{get_root(), get_name()});
callback.lastRan = now;
Expand Down

0 comments on commit 0733785

Please sign in to comment.