diff options
author | zuu <zuu@openttd.org> | 2012-08-27 20:37:20 +0000 |
---|---|---|
committer | zuu <zuu@openttd.org> | 2012-08-27 20:37:20 +0000 |
commit | 403cf9246ecdd019a99e508f8961650f21ad5275 (patch) | |
tree | 06925afb07c15dffc5574ac72857b22918767399 | |
parent | 43194537d4d77e69d53128ffb102da87fce5d8fe (diff) | |
download | openttd-403cf9246ecdd019a99e508f8961650f21ad5275.tar.xz |
(svn r24500) -Fix: Don't show the global goals as company goals for spectators
-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); |