diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-06 23:11:22 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | b0990fcff7358e839468e5cf811ffddc8b9d73e2 (patch) | |
tree | 08da5cbe48d5dcc46e8c539e0da1aa8f6233bad9 /src/cargopacket.cpp | |
parent | 4fc055d6e97e76faf53ff3f29e36a4a4549bf6e7 (diff) | |
download | openttd-b0990fcff7358e839468e5cf811ffddc8b9d73e2.tar.xz |
Codechange: Make TileIndex a "strong" typedef to give it a distinct type.
This is accomplished by changing it to a single member struct with the
appropriate operator overloads to make it all work with not too much
source modifications.
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r-- | src/cargopacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index 86bba0261..e9c6e1aa7 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -75,7 +75,7 @@ CargoPacket::CargoPacket(uint16 count, byte days_in_transit, StationID source, T source_id(source_id), source(source), source_xy(source_xy), - loaded_at_xy(loaded_at_xy) + loaded_at_xy(loaded_at_xy.value) { assert(count != 0); this->source_type = source_type; |