diff --git a/matsim/src/main/java/org/matsim/core/mobsim/qsim/qnetsimengine/AbstractAgentSnapshotInfoBuilder.java b/matsim/src/main/java/org/matsim/core/mobsim/qsim/qnetsimengine/AbstractAgentSnapshotInfoBuilder.java index 5093d8cd55f..78d2b0afe5d 100644 --- a/matsim/src/main/java/org/matsim/core/mobsim/qsim/qnetsimengine/AbstractAgentSnapshotInfoBuilder.java +++ b/matsim/src/main/java/org/matsim/core/mobsim/qsim/qnetsimengine/AbstractAgentSnapshotInfoBuilder.java @@ -186,7 +186,7 @@ public final Collection positionVehiclesAlongLine(Collection< final double spaceAvailableForHoles = distanceOfHoleFromFromNode - firstHolePosition; if ( wrnCnt < 10 ) { wrnCnt++ ; - if ( spaceConsumptionOfHoles >= spaceAvailableForHoles ) { + if ( spaceConsumptionOfHoles > spaceAvailableForHoles ) { log.warn("we have a problem: holes consume too much space:" ) ; log.warn( "summed up space consumption of holes: " + spaceConsumptionOfHoles ); log.warn("distance bw first and last hole: " + spaceAvailableForHoles ) ;