diff --git a/simulation/traffic_simulator/src/entity/entity_base.cpp b/simulation/traffic_simulator/src/entity/entity_base.cpp index 5d80fc3c8e0..5ab9728934b 100644 --- a/simulation/traffic_simulator/src/entity/entity_base.cpp +++ b/simulation/traffic_simulator/src/entity/entity_base.cpp @@ -41,9 +41,9 @@ EntityBase::EntityBase( job_list_.append( [this](double delta_time) { traveled_distance_ += std::abs(getCurrentTwist().linear.x) * delta_time; - return true; + return false; }, - [this]() { return false; }, job::Type::TRAVELED_DISTANCE, true, job::Event::POST_UPDATE); + [this]() {}, job::Type::TRAVELED_DISTANCE, true, job::Event::POST_UPDATE); if (name != static_cast(entity_status).name) { THROW_SIMULATION_ERROR(