diff --git a/map/location_state.cpp b/map/location_state.cpp index 423124e21d..7251119442 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -340,10 +340,12 @@ void State::StartRouteFollow() void State::StopRoutingMode() { - ASSERT(IsInRouting(), ()); - SetModeInfo(ChangeMode(ExcludeModeBit(m_modeInfo, RoutingSessionBit), GetMode() == RotateAndFollow ? Follow : NotFollow)); - RotateOnNorth(); - AnimateFollow(); + if (IsInRouting()) + { + SetModeInfo(ChangeMode(ExcludeModeBit(m_modeInfo, RoutingSessionBit), GetMode() == RotateAndFollow ? Follow : NotFollow)); + RotateOnNorth(); + AnimateFollow(); + } } void State::TurnOff()