summaryrefslogtreecommitdiff
path: root/station_cmd.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-04 20:38:26 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-04 20:38:26 +0000
commitd1591e864d2cc68ef7c1bfaa4d35093e64ae5a24 (patch)
treebcbf57a70d93521f7bd3ab8c7435ae0250cbd8e6 /station_cmd.c
parent9fabe008a0c3edc750f72e9eb1e9b424455e3028 (diff)
downloadopenttd-d1591e864d2cc68ef7c1bfaa4d35093e64ae5a24.tar.xz
(svn r3015) -NewGRF: Add a new sprite group result type, and support loading of callbacks results within random and "real" groups. (Not fully supported yet.)
Diffstat (limited to 'station_cmd.c')
-rw-r--r--station_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 4a62781f3..6275e0fb7 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1349,9 +1349,9 @@ uint32 GetCustomStationRelocation(const StationSpec *spec, const Station *st, by
const RealSpriteGroup *rsg = ResolveStationSpriteGroup(spec->spritegroup[ctype], st);
if (rsg->sprites_per_set != 0) {
- if (rsg->loading_count != 0) return rsg->loading[0];
+ if (rsg->loading_count != 0) return rsg->loading[0]->g.result.result;
- if (rsg->loaded_count != 0) return rsg->loaded[0];
+ if (rsg->loaded_count != 0) return rsg->loaded[0]->g.result.result;
}
error("Custom station 0x%08x::0x%02x has no sprites associated.",