Fixed assertion in GP editor.

This commit is contained in:
hiker 2014-06-03 15:52:33 +10:00
parent 71b79cc72f
commit 24f8918061

View File

@ -365,7 +365,7 @@ void GrandPrixData::addTrack(Track* track, unsigned int laps, bool reverse,
int n = getNumberOfTracks(true);
assert (track != NULL);
assert (laps > 0);
assert (-1 < position && position < n);
assert (-1 <= position && position < n);
if (position < 0 || position == (n - 1) || m_tracks.empty())
{