src/roadveh_cmd.cpp
changeset 8641 966d79f41865
parent 8640 1e93b81e96d2
child 8653 a83f7a536919
--- a/src/roadveh_cmd.cpp	Thu Dec 27 13:35:39 2007 +0000
+++ b/src/roadveh_cmd.cpp	Thu Dec 27 14:10:47 2007 +0000
@@ -2134,6 +2134,7 @@
 
 	if (v->type != VEH_ROAD || !CheckOwnership(v->owner)) return CMD_ERROR;
 	if (!CheckRoadVehInDepotStopped(v)) return_cmd_error(STR_9013_MUST_BE_STOPPED_INSIDE);
+	if (v->vehstatus & VS_CRASHED) return_cmd_error(STR_CAN_T_REFIT_DESTROYED_VEHICLE);
 
 	if (new_cid >= NUM_CARGO) return CMD_ERROR;