diff options
author | rubidium <rubidium@openttd.org> | 2012-04-25 20:50:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-04-25 20:50:13 +0000 |
commit | 41e5c839e08bfc811b1e8d7272996567776b788f (patch) | |
tree | eb8a74437dd42a7a57e157c6218e96b9df7fbd87 /src/industry_cmd.cpp | |
parent | cd50c862944098753c959cc272d62a2ddc212ca8 (diff) | |
download | openttd-41e5c839e08bfc811b1e8d7272996567776b788f.tar.xz |
(svn r24179) -Codechange: move some variables of Town to TownCache
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 128f231f8..8a5d7e36c 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1449,7 +1449,7 @@ static CommandCost CheckIfIndustryTilesAreFree(TileIndex tile, const IndustryTil */ static CommandCost CheckIfIndustryIsAllowed(TileIndex tile, int type, const Town *t) { - if ((GetIndustrySpec(type)->behaviour & INDUSTRYBEH_TOWN1200_MORE) && t->population < 1200) { + if ((GetIndustrySpec(type)->behaviour & INDUSTRYBEH_TOWN1200_MORE) && t->cache.population < 1200) { return_cmd_error(STR_ERROR_CAN_ONLY_BE_BUILT_IN_TOWNS_WITH_POPULATION_OF_1200); } |