From 2ca679f5a9684adbd69cedd01bea09a8104b528a Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 20 Jul 2009 16:30:37 +0000 Subject: [PATCH] (svn r16888) -Fix (r16864): crash when trying to build (some?) NewGRF waypoints --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index 1f2e41787e..0b195e0fd1 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -651,7 +651,7 @@ static const SpriteGroup *ResolveStation(ResolverObject *object) if (object->u.station.st == NULL) { /* No station, so we are in a purchase list */ ctype = CT_PURCHASE; - } else { + } else if (Station::IsExpected(object->u.station.st)) { const Station *st = Station::From(object->u.station.st); /* Pick the first cargo that we have waiting */ const CargoSpec *cs;