summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index ffcd723b5..0f29dd81e 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -645,10 +645,10 @@ static void ShipController(Vehicle *v)
return;
}
} else if (v->current_order.IsType(OT_GOTO_STATION)) {
- v->last_station_visited = v->current_order.dest;
+ v->last_station_visited = v->current_order.GetDestination();
/* Process station in the orderlist. */
- Station *st = GetStation(v->current_order.dest);
+ Station *st = GetStation(v->current_order.GetDestination());
if (st->facilities & FACIL_DOCK) { // ugly, ugly workaround for problem with ships able to drop off cargo at wrong stations
ShipArrivesAt(v, st);
v->BeginLoading();