@ -279,7 +279,7 @@ bool RoadStop::Enter(RoadVehicle *rv)
*/
void RoadStop : : Entry : : Leave ( const RoadVehicle * rv )
{
this - > occupied - = rv - > rcache . cached_ veh _length;
this - > occupied - = rv - > rcache . cached_ total _length;
assert ( this - > occupied > = 0 ) ;
}
@ -292,7 +292,7 @@ void RoadStop::Entry::Enter(const RoadVehicle *rv)
/* we cannot assert on this->occupied < this->length because of the
* remote possibility that RVs are running through eachother when
* trying to prevention an infinite jam . */
this - > occupied + = rv - > rcache . cached_ veh _length;
this - > occupied + = rv - > rcache . cached_ total _length;
}
/**
@ -368,7 +368,7 @@ void RoadStop::Entry::Rebuild(const RoadStop *rs, int side)
this - > occupied = 0 ;
for ( RVList : : iterator it = rserh . vehicles . begin ( ) ; it ! = rserh . vehicles . end ( ) ; it + + ) {
this - > occupied + = ( * it ) - > rcache . cached_ veh _length;
this - > occupied + = ( * it ) - > rcache . cached_ total _length;
}
}