Skip to content

Commit

Permalink
Fix #10280, 59645c6: Ignore double-click for unavailable town actions
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Feb 10, 2023
1 parent d6aa526 commit 3278f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/town_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ struct TownAuthorityWindow : Window {
}

/* When double-clicking, continue */
if (click_count == 1 || y < 0) break;
if (click_count == 1 || y < 0 || !HasBit(this->available_actions, y)) break;
FALLTHROUGH;
}

Expand Down

0 comments on commit 3278f4c

Please sign in to comment.