summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-20 16:30:37 +0000
committerrubidium <rubidium@openttd.org>2009-07-20 16:30:37 +0000
commit2ca679f5a9684adbd69cedd01bea09a8104b528a (patch)
tree284a9f80ceef90ddf4087e586b78a4c4d64ab9a3 /src
parent87dba11ca10faa2a41369893fafa4b23eb89e4b9 (diff)
downloadopenttd-2ca679f5a9684adbd69cedd01bea09a8104b528a.tar.xz
(svn r16888) -Fix (r16864): crash when trying to build (some?) NewGRF waypoints
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_station.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index 1f2e41787..0b195e0fd 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;