summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-14 21:58:48 +0000
committertron <tron@openttd.org>2005-01-14 21:58:48 +0000
commitdd279684601cbcc099d062ebd60146d5ce9afd92 (patch)
tree2108a94068943cb471d34182506cf8c9b34bc94a
parente9a57c56b7f900685188d9132d02dff22f2c3d39 (diff)
downloadopenttd-dd279684601cbcc099d062ebd60146d5ce9afd92.tar.xz
(svn r1512) Replace probably incorrect test of loading_count with probably correct test of loaded_count
-rw-r--r--station_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c
index 6ed26f585..29b23855c 100644
--- a/station_cmd.c
+++ b/station_cmd.c
@@ -1154,7 +1154,7 @@ uint32 GetCustomStationRelocation(struct StationSpec *spec, struct Station *stat
if (rsg->sprites_per_set != 0) {
if (rsg->loading_count != 0) {
return rsg->loading[0];
- } else if (rsg->loading_count != 0) {
+ } else if (rsg->loaded_count != 0) {
return rsg->loaded[0];
}
}