fix bug in preset validation and clear_goal (board repr wasn't updated correctly)

This commit is contained in:
2026-02-28 18:58:42 +01:00
parent ce05dd504a
commit bc8dd423be
3 changed files with 19 additions and 15 deletions

View File

@ -554,7 +554,8 @@ auto user_interface::draw_puzzle_controls(const Color color) const -> void
input.goto_most_distant_state();
}
if (draw_menu_button(2, 5, 1, 1, "Go to Starting State (R)", color)) {
if (draw_menu_button(2, 5, 1, 1, "Go to Starting State (R)", color,
state.get_current_index() != state.get_starting_index())) {
input.goto_starting_state();
}
}