From 0ddada289722333b5075dfb48ffb20f45a14b20d Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 11 Feb 2017 14:42:24 +0800 Subject: [PATCH] Fix --track-debug crash --- src/tracks/check_line.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tracks/check_line.cpp b/src/tracks/check_line.cpp index f18ae1295..bc817dc53 100644 --- a/src/tracks/check_line.cpp +++ b/src/tracks/check_line.cpp @@ -140,6 +140,7 @@ void CheckLine::reset(const Track &track) // ---------------------------------------------------------------------------- void CheckLine::resetAfterKartMove(unsigned int kart_index) { + if (m_previous_position.empty()) return; AbstractKart *kart = World::getWorld()->getKart(kart_index); m_previous_position[kart_index] = kart->getXYZ(); } // resetAfterKartMove