summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/yapf/yapf_road.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/yapf_road.cpp b/src/pathfinder/yapf/yapf_road.cpp
index 21a125f8b..af4413111 100644
--- a/src/pathfinder/yapf/yapf_road.cpp
+++ b/src/pathfinder/yapf/yapf_road.cpp
@@ -11,7 +11,6 @@
#include "../../stdafx.h"
#include "../../roadstop_base.h"
-#include "../../cargotype.h"
#include "yapf.hpp"
#include "yapf_node_road.hpp"
@@ -209,7 +208,7 @@ public:
{
m_dest_station = sid;
m_destTile = destTile;
- m_bus = IsCargoInClass(v->cargo_type, CC_PASSENGERS);
+ m_bus = v->IsBus();
m_non_artic = !v->HasArticulatedPart();
}