From a81f21a27a7ae278c87c2b4f15efb1afef308898 Mon Sep 17 00:00:00 2001 From: hiker Date: Thu, 31 Jul 2014 09:28:42 +1000 Subject: [PATCH] Applied konstin's bugfix for an editor crash. --- src/race/grand_prix_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/race/grand_prix_data.cpp b/src/race/grand_prix_data.cpp index ff7cb8380..b4d058e15 100644 --- a/src/race/grand_prix_data.cpp +++ b/src/race/grand_prix_data.cpp @@ -553,7 +553,7 @@ void GrandPrixData::editTrack(unsigned int index, Track* track, // ---------------------------------------------------------------------------- void GrandPrixData::remove(const unsigned int track) { - assert (0 < track && track < getNumberOfTracks(true)); + assert (0 <= track && track < getNumberOfTracks(true)); m_tracks.erase(m_tracks.begin() + track); m_laps.erase(m_laps.begin() + track);