(svn r26059) -Fix (r20435): missed one instance causing to compare an array to NULL instead of an array's element
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user