summaryrefslogtreecommitdiff
path: root/src/order_backup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_backup.cpp')
-rw-r--r--src/order_backup.cpp3
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();