# HG changeset patch # User truebrain # Date 2011-12-23 23:29:59 # Node ID f3b285f62c97bad36a8bb8fd1f0c53b8152d1db3 # Parent cf0bf84972de483d28227fd3cb1034c143913186 (svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D) diff --git a/src/goal.cpp b/src/goal.cpp --- a/src/goal.cpp +++ b/src/goal.cpp @@ -80,6 +80,8 @@ CommandCost CmdCreateGoal(TileIndex tile default: return CMD_ERROR; } + if (company != INVALID_OWNER && company != _local_company) return CommandCost(); + if (flags & DC_EXEC) { Goal *g = new Goal(); g->type = type;