mirror of https://github.com/OpenTTD/OpenTTD
(svn r26059) -Fix (r20435): missed one instance causing to compare an array to NULL instead of an array's element
parent
0e9c992104
commit
ba1b35a0ac
|
@ -610,7 +610,7 @@ static void DoTriggerHouse(TileIndex tile, HouseTrigger trigger, byte base_rando
|
|||
HouseID hid = GetHouseType(tile);
|
||||
HouseSpec *hs = HouseSpec::Get(hid);
|
||||
|
||||
if (hs->grf_prop.spritegroup == NULL) return;
|
||||
if (hs->grf_prop.spritegroup[0] == NULL) return;
|
||||
|
||||
HouseResolverObject object(hid, tile, Town::GetByTile(tile), CBID_RANDOM_TRIGGER);
|
||||
object.trigger = trigger;
|
||||
|
|
Loading…
Reference in New Issue