Fix bug on unlock next stage

This commit is contained in:
Moe Poi ~ 2023-10-21 23:42:53 +07:00
parent 5bc8989892
commit 7cd0c2ced2

View file

@ -14,6 +14,7 @@ func set_next_stage(value: int):
func unlock_next_stage():
if next_stage != 0:
if data['unlocked_stage'] < next_stage:
data['unlocked_stage'] = next_stage
game_data.save_data(data)