summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index f94363fd9..cd5524c57 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -21,7 +21,7 @@ CargoPacket::CargoPacket(StationID source, uint16 count)
if (source != INVALID_STATION) assert(count != 0);
this->source = source;
- this->source_xy = (source != INVALID_STATION) ? GetStation(source)->xy : 0;
+ this->source_xy = (source != INVALID_STATION) ? Station::Get(source)->xy : 0;
this->loaded_at_xy = this->source_xy;
this->count = count;