Fix route step lines not being updated when cloning a vehicle's orders.

This commit is contained in:
Jonathan G Rennison
2016-03-01 21:31:17 +00:00
parent 374316e4b4
commit dd7f5dca71

View File

@@ -1484,6 +1484,8 @@ public:
share_order ? CMD_CLONE_ORDER | CMD_MSG(STR_ERROR_CAN_T_SHARE_ORDER_LIST) : CMD_CLONE_ORDER | CMD_MSG(STR_ERROR_CAN_T_COPY_ORDER_LIST))) { share_order ? CMD_CLONE_ORDER | CMD_MSG(STR_ERROR_CAN_T_SHARE_ORDER_LIST) : CMD_CLONE_ORDER | CMD_MSG(STR_ERROR_CAN_T_COPY_ORDER_LIST))) {
this->selected_order = -1; this->selected_order = -1;
ResetObjectToPlace(); ResetObjectToPlace();
MarkAllRoutePathsDirty(this->vehicle);
MarkAllRouteStepsDirty(this);
} }
return true; return true;
} }