diff options
author | rubidium <rubidium@openttd.org> | 2011-12-09 20:48:13 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-09 20:48:13 +0000 |
commit | d9b9ac6013eccff386da96a3ef8b97912b994584 (patch) | |
tree | c774d9555130bb5df36a3d2f4590138b7ab39a50 /src/order_cmd.cpp | |
parent | 7af041d12da235df6f43c42f647dd4c219624bbe (diff) | |
download | openttd-d9b9ac6013eccff386da96a3ef8b97912b994584.tar.xz |
(svn r23464) -Fix [FS#4876]: clear the backed up orders of a removed station as well, otherwise one could create orders to a station that was never in the original backupped orders. For example a road vehicle trying to go to a buoy.
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r-- | src/order_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index ad84b582c..7b7fc8f57 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -27,6 +27,7 @@ #include "station_base.h" #include "waypoint_base.h" #include "company_base.h" +#include "order_backup.h" #include "table/strings.h" @@ -1705,6 +1706,8 @@ restart: } } } + + OrderBackup::RemoveOrder(type, destination); } /** |