diff options
author | rubidium <rubidium@openttd.org> | 2013-11-23 13:16:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-23 13:16:05 +0000 |
commit | ba1b35a0acb6aa789583c249dade13047952b8ae (patch) | |
tree | 4c8265d4f58d42a1b7f10e9e0ef59fab0461bc75 /src | |
parent | 0e9c9921040a1d0e2aa4b820b20535f40a0d75a3 (diff) | |
download | openttd-ba1b35a0acb6aa789583c249dade13047952b8ae.tar.xz |
(svn r26059) -Fix (r20435): missed one instance causing to compare an array to NULL instead of an array's element
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_house.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 38b127f97..e54a97685 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -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; |