summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newgrf_station.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_station.c b/newgrf_station.c
index 0ffe8989e..14b1d083b 100644
--- a/newgrf_station.c
+++ b/newgrf_station.c
@@ -710,10 +710,10 @@ bool IsStationTileElectrifiable(TileIndex tile)
st = GetStationByTile(tile);
specindex = GetCustomStationSpecIndex(tile);
- if (specindex >= st->num_specs) return false;
+ if (specindex >= st->num_specs) return true;
statspec = st->speclist[specindex].spec;
- if (statspec == NULL) return false;
+ if (statspec == NULL) return true;
return HASBIT(statspec->pylons, GetStationGfx(tile)) || !HASBIT(statspec->wires, GetStationGfx(tile));
}