diff options
author | rubidium <rubidium@openttd.org> | 2008-04-13 19:46:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-13 19:46:26 +0000 |
commit | b6ce2357007986187272448d21e25dfa1cd6d306 (patch) | |
tree | 00f00886228a39126d927de52a704a9f9e33b28c /src/order_cmd.cpp | |
parent | 8ab49198b9a5285cb5676943fe66a997d2130bc3 (diff) | |
download | openttd-b6ce2357007986187272448d21e25dfa1cd6d306.tar.xz |
(svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 1929760c3..ccb104d2a 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -216,9 +216,7 @@ Order UnpackOldOrder(uint16 packed) * Sanity check * TTD stores invalid orders as OT_NOTHING with non-zero flags/station */ - if (!order.IsValid() && (order.GetLoadType() != 0 || order.GetUnloadType() != 0 || order.GetDestination() != 0)) { - order.MakeDummy(); - } + if (!order.IsValid() && packed != 0) order.MakeDummy(); return order; } |