Fix achievement progression only updating after opening and closing wesnoth.

This commit is contained in:
Pentarctagon 2023-04-06 20:47:22 -05:00
parent 1d31c674c9
commit d35cf620ab

View file

@ -3216,6 +3216,8 @@ int game_lua_kernel::intf_progress_achievement(lua_State *L)
if(progress >= achieve.max_progress_) {
intf_set_achievement(L);
achieve.current_progress_ = -1;
} else {
achieve.current_progress_ = progress;
}
lua_pushinteger(L, progress);
} else {