diff options
Diffstat (limited to 'train_cmd.c')
-rw-r--r-- | train_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c index 09b2ce019..39a247fe3 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -15,6 +15,7 @@ #include "player.h" #include "sound.h" #include "depot.h" +#include "waypoint.h" #define is_firsthead_sprite(spritenum) \ (is_custom_sprite(spritenum) \ @@ -1916,7 +1917,7 @@ static bool ProcessTrainOrder(Vehicle *v) break; case OT_GOTO_WAYPOINT: - v->dest_tile = _waypoints[order->station].xy; + v->dest_tile = GetWaypoint(order->station)->xy; result = CheckReverseTrain(v); break; } |