summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2006-08-11 03:07:46 +0000
committerbelugas <belugas@openttd.org>2006-08-11 03:07:46 +0000
commitf1968d236c5418475bc7f1dea0b70deccbf1b32e (patch)
tree3f87154e1adffbd7320f3edbc4a7596c7521ff3b
parent50d2530adc82560c5cb0b3c8a38b49e9218badf7 (diff)
downloadopenttd-f1968d236c5418475bc7f1dea0b70deccbf1b32e.tar.xz
(svn r5839) Fix : A ship in a depot must be stopped before allowed to be cloned.
As this is standard behaviour for all other vehicle types...
-rw-r--r--ship_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 69b53fd38..a3b4ac3d3 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -559,7 +559,7 @@ static void ShipViewWndProc(Window *w, WindowEvent *e)
case WE_MOUSELOOP:
{
const Vehicle *v = GetVehicle(w->window_number);
- uint32 h = IsShipInDepot(v) ? 1 << 7 : 1 << 11;
+ uint32 h = IsShipInDepotStopped(v) ? 1 << 7 : 1 << 11;
if (h != w->hidden_state) {
w->hidden_state = h;