Skip to content

Commit

Permalink
Fix OpenTTD#10280, 59645c6: Ignore double-click for unavailable town …
Browse files Browse the repository at this point in the history
…actions
  • Loading branch information
glx22 committed Feb 10, 2023
1 parent cd42d63 commit 6ca3bef
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 6ca3bef

Please sign in to comment.