Fix crash bug when loading data without colors
This commit is contained in:
parent
2566d0eff5
commit
8ac2c68b99
@ -76,7 +76,8 @@ static void parseXml(mxml_node_t* rootNode, TrackData* trackData)
|
|||||||
}
|
}
|
||||||
else
|
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
|
// If we already have this track loaded we delete all the existing keys
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user