mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
Fix: Ignore clicks on non-applicable global goals (#8035)
This commit is contained in:
parent
e7da6616ba
commit
3a08a7e99d
@ -86,7 +86,7 @@ struct GoalListWindow : public Window {
|
||||
if (y < 0) return;
|
||||
|
||||
for (const Goal *s : Goal::Iterate()) {
|
||||
if (s->company == this->window_number) {
|
||||
if (s->company == this->window_number && s->company != INVALID_COMPANY) {
|
||||
y--;
|
||||
if (y == 0) {
|
||||
this->HandleClick(s);
|
||||
|
Loading…
Reference in New Issue
Block a user