Fix: Ignore clicks on non-applicable global goals (#8035)

pull/140/head
SamuXarick 4 years ago committed by GitHub
parent e7da6616ba
commit 3a08a7e99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save