diff options
-rw-r--r-- | src/goal_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/goal_gui.cpp b/src/goal_gui.cpp index 70dd6d5df..0b01f825a 100644 --- a/src/goal_gui.cpp +++ b/src/goal_gui.cpp @@ -190,7 +190,7 @@ struct GoalListWindow : Window { num = 0; FOR_ALL_GOALS(s) { - if (s->company == _local_company) { + if (s->company == _local_company && s->company != INVALID_COMPANY) { if (IsInsideMM(pos, 0, cap)) { /* Display the goal */ SetDParamStr(0, s->text); |