Increase filename length of music.
This commit is contained in:
parent
58e91e83c0
commit
8cd74e999d
|
@ -34,7 +34,7 @@ static void loadEpicData(cJSON *node);
|
||||||
void loadMission(char *filename)
|
void loadMission(char *filename)
|
||||||
{
|
{
|
||||||
cJSON *root;
|
cJSON *root;
|
||||||
char *text, music[MAX_NAME_LENGTH];
|
char *text, music[MAX_DESCRIPTION_LENGTH];
|
||||||
|
|
||||||
startSectionTransition();
|
startSectionTransition();
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ void loadMission(char *filename)
|
||||||
|
|
||||||
loadLocations(cJSON_GetObjectItem(root, "locations"));
|
loadLocations(cJSON_GetObjectItem(root, "locations"));
|
||||||
|
|
||||||
STRNCPY(music, cJSON_GetObjectItem(root, "music")->valuestring, MAX_NAME_LENGTH);
|
STRNCPY(music, cJSON_GetObjectItem(root, "music")->valuestring, MAX_DESCRIPTION_LENGTH);
|
||||||
|
|
||||||
if (cJSON_GetObjectItem(root, "epic"))
|
if (cJSON_GetObjectItem(root, "epic"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue