diff options
author | rubidium <rubidium@openttd.org> | 2011-11-12 18:06:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-12 18:06:34 +0000 |
commit | fb63543e2a9659d186f20c0558394b17b1615830 (patch) | |
tree | 71ef0580f22c269e82995ab864400a0e68579b57 /src/order_backup.cpp | |
parent | 7fd1e1df81c3ed45e176f1bbf46d873b6cff316e (diff) | |
download | openttd-fb63543e2a9659d186f20c0558394b17b1615830.tar.xz |
(svn r23199) -Fix [FS#4822]: oil rigs that "expired" did not get removed from the station list
Diffstat (limited to 'src/order_backup.cpp')
-rw-r--r-- | src/order_backup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/order_backup.cpp b/src/order_backup.cpp index b2e7b068c..9cccb941f 100644 --- a/src/order_backup.cpp +++ b/src/order_backup.cpp @@ -16,6 +16,7 @@ #include "network/network_func.h" #include "order_backup.h" #include "vehicle_base.h" +#include "window_func.h" OrderBackupPool _order_backup_pool("BackupOrder"); INSTANTIATE_POOL_METHODS(OrderBackup) @@ -84,6 +85,8 @@ void OrderBackup::DoRestore(Vehicle *v) } else if (this->orders != NULL && OrderList::CanAllocateItem()) { v->orders.list = new OrderList(this->orders, v); this->orders = NULL; + /* Make sure buoys/oil rigs are updated in the station list. */ + InvalidateWindowClassesData(WC_STATION_LIST, 0); } uint num_orders = v->GetNumOrders(); |