forked from mirror/OpenTTD
(svn r1739) - Fix: type checking when selling vehicles (TrueLight)
This commit is contained in:
@@ -873,7 +873,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
|
||||
v = GetVehicle(p1);
|
||||
|
||||
if (v->type == 0 || !CheckOwnership(v->owner))
|
||||
if (v->type != VEH_Train || !CheckOwnership(v->owner))
|
||||
return CMD_ERROR;
|
||||
|
||||
// get first vehicle in chain
|
||||
|
Reference in New Issue
Block a user