From 8ee7719912ab3177e370fcc73cbd0b44dca2d3fc Mon Sep 17 00:00:00 2001 From: truebrain Date: Fri, 23 Dec 2011 23:29:59 +0000 Subject: [PATCH] (svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D) --- src/goal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/goal.cpp b/src/goal.cpp index 91ba6d288a..b6eabcdfe6 100644 --- a/src/goal.cpp +++ b/src/goal.cpp @@ -80,6 +80,8 @@ CommandCost CmdCreateGoal(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 default: return CMD_ERROR; } + if (company != INVALID_OWNER && company != _local_company) return CommandCost(); + if (flags & DC_EXEC) { Goal *g = new Goal(); g->type = type;