summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-09-24 16:40:06 +0000
committersmatz <smatz@openttd.org>2008-09-24 16:40:06 +0000
commit6987e6015af482de4bfa2a9233a6377d2fb1457a (patch)
tree4bdc7914fbb86480437af0957e290777e16788c6 /src/ship_cmd.cpp
parent7a527807d908cfd667c8d32f89435f33f2d231a6 (diff)
downloadopenttd-6987e6015af482de4bfa2a9233a6377d2fb1457a.tar.xz
(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index cd7fe29a1..3d63347b9 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -627,7 +627,7 @@ static void ShipController(Vehicle *v)
UpdateVehicleTimetable(v, true);
v->cur_order_index++;
v->current_order.MakeDummy();
- InvalidateVehicleOrder(v);
+ InvalidateVehicleOrder(v, 0);
} else {
/* Non-buoy orders really need to reach the tile */
if (v->dest_tile == gp.new_tile) {
@@ -647,7 +647,7 @@ static void ShipController(Vehicle *v)
} else { // leave stations without docks right aways
v->current_order.MakeLeaveStation();
v->cur_order_index++;
- InvalidateVehicleOrder(v);
+ InvalidateVehicleOrder(v, 0);
}
}
}