diff --git a/library/src/configuration.cpp b/library/src/configuration.cpp index fec537f..51998e3 100644 --- a/library/src/configuration.cpp +++ b/library/src/configuration.cpp @@ -691,8 +691,10 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json) case MemberType::DurationType: if (strcmp(inner_obj_name, "pun_id") == 0) Duration.pun_id = k->value.GetInt(); else if (strcmp(inner_obj_name, "pun_label") == 0) Duration.pun_label = k->value.GetString(); - else if (strcmp(inner_obj_name, "pun_duration") == 0) Duration.pun_duration = k->value.GetDouble(); - else if (strcmp(inner_obj_name, "pun_duration_min") == 0) Duration.pun_duration_min = k->value.GetInt(); + else if (strcmp(inner_obj_name, "pun_duration") == 0) { + Duration.pun_duration = k->value.GetDouble(); + Duration.pun_duration_saved = Duration.pun_duration; + } else if (strcmp(inner_obj_name, "pun_duration_min") == 0) Duration.pun_duration_min = k->value.GetInt(); else if (strcmp(inner_obj_name, "pun_duration_max") == 0) Duration.pun_duration_max = k->value.GetInt(); else if (strcmp(inner_obj_name, "pun_interpolation_id") == 0) Duration.pun_interpolation_id = k->value.GetInt(); break;