(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...
This commit is contained in:
belugas 2006-08-11 03:07:46 +00:00
parent 581476b7d2
commit 811e79ba4c
1 changed files with 1 additions and 1 deletions

View File

@ -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;