summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2013-01-10 22:56:49 +0000
committerpeter1138 <peter1138@openttd.org>2013-01-10 22:56:49 +0000
commit4ebbfc3de4a50b6cf73a7fe50dd17ac1e42efb92 (patch)
treec38d4dc93486c19db9f7459c55a4e33c9d023589 /src
parentb935e01513837172d06368e53b99700ffeb3f3e6 (diff)
downloadopenttd-4ebbfc3de4a50b6cf73a7fe50dd17ac1e42efb92.tar.xz
(svn r24904) -Fix (r22746): "Train loads/unloads cargo" station animation triggers on individual platform
Diffstat (limited to 'src')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index fa76e9429..3cdb79321 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1552,7 +1552,7 @@ static void LoadUnloadVehicle(Vehicle *front, int *cargo_left)
}
if (anything_loaded || anything_unloaded) {
- if (front->type == VEH_TRAIN) TriggerStationAnimation(st, st->xy, SAT_TRAIN_LOADS);
+ if (front->type == VEH_TRAIN) TriggerStationAnimation(st, front->tile, SAT_TRAIN_LOADS);
}
/* Only set completely_emptied, if we just unloaded all remaining cargo */