Use targetValue for objectives.

This commit is contained in:
Steve 2018-02-04 09:56:37 +00:00
parent 9841418d20
commit ac48179541
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ static void loadObjectives(cJSON *root)
STRNCPY(o->targetName, cJSON_GetObjectItem(node, "targetName")->valuestring, MAX_NAME_LENGTH); STRNCPY(o->targetName, cJSON_GetObjectItem(node, "targetName")->valuestring, MAX_NAME_LENGTH);
STRNCPY(o->description, cJSON_GetObjectItem(node, "description")->valuestring, MAX_DESCRIPTION_LENGTH); STRNCPY(o->description, cJSON_GetObjectItem(node, "description")->valuestring, MAX_DESCRIPTION_LENGTH);
o->totalValue = cJSON_GetObjectItem(node, "totalValue")->valueint; o->totalValue = cJSON_GetObjectItem(node, "totalValue")->valueint;
o->targetValue = cJSON_GetObjectItem(node, "totalValue")->valueint; o->targetValue = cJSON_GetObjectItem(node, "targetValue")->valueint;
o->currentValue = cJSON_GetObjectItem(node, "currentValue")->valueint; o->currentValue = cJSON_GetObjectItem(node, "currentValue")->valueint;
o->required = cJSON_GetObjectItem(node, "required")->valueint; o->required = cJSON_GetObjectItem(node, "required")->valueint;
} }