(svn r2156) -Fix: in revision 2104 someone forgot to add a very important check in

GetPrevVehicleInChain; this caused some nasty bugs in depots, like 
wagons without engines complain about not being stopped, and stuff like 
that. Hopefully this fixes those problems. With a big tnx to BJH for his 
perfect demo!
This commit is contained in:
truelight 2005-04-06 15:39:18 +00:00
parent 13fc3271f4
commit 93c61b9e8f
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ Vehicle *GetPrevVehicleInChain(const Vehicle *v)
{
Vehicle *u;
FOR_ALL_VEHICLES(u) if (u->next == v) return u;
FOR_ALL_VEHICLES(u) if (u->type == VEH_Train && u->next == v) return u;
return NULL;
}