Fixed BITDW level name

This commit is contained in:
NoHomoBoi 2020-09-13 16:44:24 -05:00
parent 8f5b1b74c2
commit b20e3c7940
1 changed files with 8 additions and 5 deletions

View File

@ -104,8 +104,11 @@ void load_language(char* jsonTxt, s8 language){
const cJSON *act = NULL;
char* courseName = cJSON_GetObjectItemCaseSensitive(course, "course")->valuestring;
if(courseID + 1 <= cJSON_GetArraySize(courses) - 1){
languages[language]->courses[courseID] = getTranslatedText(courseName);
courseID++;
}
cJSON_ArrayForEach(act, acts) {
languages[language]->acts[actID] = getTranslatedText(act->valuestring);
actSize += strlen(act->valuestring);