changeset 1235 | 12e2f93d0a94 |
parent 1226 | cbcaba80c31c |
child 1237 | 0a1ce05c3d45 |
--- a/ship_cmd.c Sun Jan 30 18:40:52 2005 +0000 +++ b/ship_cmd.c Sun Jan 30 18:51:08 2005 +0000 @@ -919,7 +919,7 @@ v = GetVehicle(p1); - if (!CheckOwnership(v->owner)) + if (v->type != VEH_Ship || !CheckOwnership(v->owner)) return CMD_ERROR; if (!IsShipDepotTile(v->tile) || v->u.road.state != 0x80 || !(v->vehstatus&VS_STOPPED))