summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index f6e1d3790..04a0d8617 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -606,8 +606,9 @@ static void DoTriggerHouse(TileIndex tile, HouseTrigger trigger, byte base_rando
byte new_random_bits = Random();
byte random_bits = GetHouseRandomBits(tile);
- random_bits &= ~object.reseed;
- random_bits |= (first ? new_random_bits : base_random) & object.reseed;
+ uint32 reseed = object.GetReseedSum(); // The scope only affects triggers, not the reseeding
+ random_bits &= ~reseed;
+ random_bits |= (first ? new_random_bits : base_random) & reseed;
SetHouseRandomBits(tile, random_bits);
switch (trigger) {