(svn r24500) -Fix: Don't show the global goals as company goals for spectators

This commit is contained in:
zuu 2012-08-27 20:37:20 +00:00
parent 43194537d4
commit 403cf9246e
1 changed files with 1 additions and 1 deletions

View File

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