summaryrefslogtreecommitdiff
path: root/src/goal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/goal.cpp')
-rw-r--r--src/goal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/goal.cpp b/src/goal.cpp
index 91ba6d288..b6eabcdfe 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;