Skip to content

Commit 175bdb5

Browse files
LuisPovedaCanoBlyron
authored andcommitted
the find function was checking against the non-lowered string
1 parent dfb66fd commit 175bdb5

File tree

1 file changed

+1
-1
lines changed
  • LibCarla/source/carla/trafficmanager

1 file changed

+1
-1
lines changed

LibCarla/source/carla/trafficmanager/ALSM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void ALSM::AddActor(const Actor actor){
372372
if (attribute.GetId() == "base_type"){
373373
std::string value = attribute.GetValue();
374374
std::transform(value.begin(), value.end(), value.begin(),[](unsigned char c){ return std::tolower(c);});
375-
if (std::find(large_vehicle_types.begin(), large_vehicle_types.end(), attribute.GetValue()) != large_vehicle_types.end()) {
375+
if (std::find(large_vehicle_types.begin(), large_vehicle_types.end(), value) != large_vehicle_types.end()) {
376376
large_vehicles[actor_id] = std::make_pair(0.0f, 0.0f);
377377
} else {
378378
}

0 commit comments

Comments
 (0)