# HG changeset patch # User rubidium # Date 2013-11-23 13:16:05 # Node ID 5412418d753c1189348c24b6e48ea6e483e0aef6 # Parent a4da9302878d6b337fb6ccc851212c87bbc3c473 (svn r26059) -Fix (r20435): missed one instance causing to compare an array to NULL instead of an array's element diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -610,7 +610,7 @@ static void DoTriggerHouse(TileIndex til 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;