diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -873,7 +873,7 @@ int32 CmdSellRailWagon(int x, int y, uin v = GetVehicle(p1); - if (!CheckOwnership(v->owner)) + if (v->type == 0 || !CheckOwnership(v->owner)) return CMD_ERROR; // get first vehicle in chain