mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 17:19:09 +00:00
(svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user