summaryrefslogtreecommitdiff
path: root/src/cargopacket.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-06 21:19:20 +0000
committerrubidium <rubidium@openttd.org>2009-10-06 21:19:20 +0000
commit80f0df17ba7d52900d3cb434d4feb65c83c4b772 (patch)
tree315a3186652e3a7966f5bd2572191081fa29dfc9 /src/cargopacket.cpp
parentd52fa73bb14314d80811482c840fc6fc3e485b80 (diff)
downloadopenttd-80f0df17ba7d52900d3cb434d4feb65c83c4b772.tar.xz
(svn r17732) -Codechange: reorder some variables of cargo packets/cargo lists to get better alignment *and* smaller structs; both from 40 bytes to 32 bytes on 64 bits.
Diffstat (limited to 'src/cargopacket.cpp')
-rw-r--r--src/cargopacket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp
index 79c31d9d8..b84dc46ec 100644
--- a/src/cargopacket.cpp
+++ b/src/cargopacket.cpp
@@ -28,8 +28,8 @@ void InitializeCargoPackets()
CargoPacket::CargoPacket(StationID source, uint16 count, SourceType source_type, SourceID source_id) :
count(count),
- source(source),
- source_id(source_id)
+ source_id(source_id),
+ source(source)
{
this->source_type = source_type;