Fix order destination refcount accounting for shared orders

pull/104/head
Jonathan G Rennison 5 years ago
parent 704eaf80f6
commit e28da50c4f

@ -63,6 +63,7 @@ void IntialiseOrderDestinationRefcountMap()
ClearOrderDestinationRefcountMap();
const Vehicle *v;
FOR_ALL_VEHICLES(v) {
if (v != v->FirstShared()) continue;
const Order *order;
FOR_VEHICLE_ORDERS(v, order) {
if (order->IsType(OT_GOTO_STATION) || order->IsType(OT_GOTO_WAYPOINT) || order->IsType(OT_IMPLICIT)) {

Loading…
Cancel
Save