roadveh_cmd.c
changeset 1757 b179d50241dc
parent 1752 cdbfb2f23e72
child 1758 68668114f92e
--- a/roadveh_cmd.c	Tue May 03 15:20:08 2005 +0000
+++ b/roadveh_cmd.c	Tue May 03 19:31:33 2005 +0000
@@ -353,6 +353,9 @@
 	if (v->type != VEH_Road || !CheckOwnership(v->owner))
 		return CMD_ERROR;
 
+	if (v->vehstatus & VS_CRASHED)
+		return CMD_ERROR;
+
 	if (v->current_order.type == OT_GOTO_DEPOT) {
 		if (flags & DC_EXEC) {