diff --git a/src/tracks/check_structure.cpp b/src/tracks/check_structure.cpp index 932b75e4f..7d3bce9d3 100644 --- a/src/tracks/check_structure.cpp +++ b/src/tracks/check_structure.cpp @@ -67,10 +67,9 @@ void CheckStructure::update(float dt) { for(unsigned int i=0; igetNumKarts(); i++) { - // Ignore all non-active checklines. - if(!m_is_active[i]) continue; const Vec3 &xyz = race_manager->getKart(i)->getXYZ(); - if(isTriggered(m_previous_position[i], xyz, i)) + // Only check active checklines. + if(m_is_active[i] && isTriggered(m_previous_position[i], xyz, i)) { trigger(i); }