diff options
author | frosch <frosch@openttd.org> | 2010-05-01 13:01:21 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-05-01 13:01:21 +0000 |
commit | 77953032274c3bb49c8b22ff7a2767412586c5a7 (patch) | |
tree | 254b97e9037aec36599ddaa0e32e6ff0e388b5a9 /src/town_cmd.cpp | |
parent | 36850ba3e86fd9633ae0104caa0cb8b8aeecfc37 (diff) | |
download | openttd-77953032274c3bb49c8b22ff7a2767412586c5a7.tar.xz |
(svn r19743) -Fix: NewGrfs could access map bits of not yet constructed industries and houses during construction callbacks.
Diffstat (limited to 'src/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 47bd8b219..0fb74a45d 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -2165,7 +2165,7 @@ static bool BuildTownHouse(Town *t, TileIndex tile) } if (HasBit(hs->callback_mask, CBM_HOUSE_ALLOW_CONSTRUCTION)) { - uint16 callback_res = GetHouseCallback(CBID_HOUSE_ALLOW_CONSTRUCTION, 0, 0, house, t, tile); + uint16 callback_res = GetHouseCallback(CBID_HOUSE_ALLOW_CONSTRUCTION, 0, 0, house, t, tile, true); if (callback_res != CALLBACK_FAILED && GB(callback_res, 0, 8) == 0) continue; } |