1
0
Fork 0

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

pull/8085/head
SamuXarick 2020-03-22 14:02:48 +00:00 committed by Charles Pigott
parent b542ebfb52
commit fd64c62bcd
1 changed files with 1 additions and 1 deletions

View File

@ -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);