1
0
Fork 0

(svn r23664) -Fix: adding goals with a company were still added for all companies. Tnx to Zuu for reporting (although cryptic :D)

release/1.2
truebrain 2011-12-23 23:29:59 +00:00
parent 1ceef81cd3
commit d6e88a7cab
1 changed files with 2 additions and 0 deletions

View File

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