Fix crash bug when loading data without colors

This commit is contained in:
Daniel Collin 2012-11-10 22:15:43 +01:00
parent 2566d0eff5
commit 8ac2c68b99

View File

@ -76,7 +76,8 @@ static void parseXml(mxml_node_t* rootNode, TrackData* trackData)
}
else
{
trackData->colors[track_index] = atoi(color_text);
if (color_text)
trackData->colors[track_index] = atoi(color_text);
}
// If we already have this track loaded we delete all the existing keys