commit 5609edc8a05ce103422e8510b7b8fa5ccf5ad584 from: the xhr date: Thu Sep 16 13:23:04 2021 UTC replace dep func commit - 61d535c34a7df9951ab1b7904129149ed88ff149 commit + 5609edc8a05ce103422e8510b7b8fa5ccf5ad584 blob - 5a7c3a3c9eccbf5a3aeb3788dd611dbd8577a2ed blob + 481db981161f49a95c45b88f1a609ab93efabee3 --- journey.c +++ journey.c @@ -320,8 +320,11 @@ load_journey(int id) if (id == json_object_get_int(lid)) { log_debug("Loading journey for id: %d\n", json_object_get_int(lid)); - curchar->j->difficulty = json_object_get_int(json_object_object_get(temp, "difficulty")); - curchar->j->progress = json_object_get_double(json_object_object_get(temp, "progress")); + json_object *cval; + json_object_object_get_ex(temp, "difficulty", &cval); + curchar->j->difficulty = json_object_get_int(cval); + json_object_object_get_ex(temp, "progress", &cval); + curchar->j->progress = json_object_get_double(cval); } }