1
0
Fork 0

(svn r1738) -Fix: [ 1108735 ] Fixed (hopefully) an assertion that was cause by selling carriages in a MP game faster than the network can handle. (Truelight)

release/0.4.5
celestar 2005-01-30 18:40:52 +00:00
parent 7526afdae0
commit e3287ad303
1 changed files with 1 additions and 1 deletions

View File

@ -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