mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r16888) -Fix (r16864): crash when trying to build (some?) NewGRF waypoints
This commit is contained in:
parent
45113f6d96
commit
8c9965fd44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user