From 0a16393ffe138bc9a9156e5c55ab3ea42e7c73d5 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 4 May 2006 18:10:17 +0000 Subject: [PATCH] (svn r4737) - Newstations: 'real' groups picked the wrong set of loading or loaded sprites --- newgrf_station.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/newgrf_station.c b/newgrf_station.c index 96f45c7f63..361f930331 100644 --- a/newgrf_station.c +++ b/newgrf_station.c @@ -287,14 +287,14 @@ static const SpriteGroup *StationResolveReal(const ResolverObject *object, const cargo = min(0xfff, cargo); if (cargo > statspec->cargo_threshold) { - if (group->g.real.num_loaded > 0) { - set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loaded) / (0xfff - statspec->cargo_threshold); - return group->g.real.loaded[set]; + if (group->g.real.num_loading > 0) { + set = ((cargo - statspec->cargo_threshold) * group->g.real.num_loading) / (0xfff - statspec->cargo_threshold); + return group->g.real.loading[set]; } } else { - if (group->g.real.num_loading > 0) { - set = (cargo * group->g.real.num_loading) / (statspec->cargo_threshold + 1); - return group->g.real.loading[set]; + if (group->g.real.num_loaded > 0) { + set = (cargo * group->g.real.num_loaded) / (statspec->cargo_threshold + 1); + return group->g.real.loaded[set]; } }