(svn r16888) -Fix (r16864): crash when trying to build (some?) NewGRF waypoints

This commit is contained in:
rubidium 2009-07-20 16:30:37 +00:00
parent 87dba11ca1
commit 2ca679f5a9

View File

@ -651,7 +651,7 @@ static const SpriteGroup *ResolveStation(ResolverObject *object)
if (object->u.station.st == NULL) { if (object->u.station.st == NULL) {
/* No station, so we are in a purchase list */ /* No station, so we are in a purchase list */
ctype = CT_PURCHASE; ctype = CT_PURCHASE;
} else { } else if (Station::IsExpected(object->u.station.st)) {
const Station *st = Station::From(object->u.station.st); const Station *st = Station::From(object->u.station.st);
/* Pick the first cargo that we have waiting */ /* Pick the first cargo that we have waiting */
const CargoSpec *cs; const CargoSpec *cs;