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