commit d6e4bd9dfadf341f2b369e51c1656260f549ed12 from: the xhr date: Thu Sep 16 13:48:47 2021 UTC Skip over not yet used categories commit - e8d826b7986faa7f498aaee6de264a3697f76969 commit + d6e4bd9dfadf341f2b369e51c1656260f549ed12 blob - 262cf48396b614bbb889af99764ef85f389fad15 blob + 79008c1a6bd7870f04166c9da0d3b584541986dc --- oracle.c +++ oracle.c @@ -210,8 +210,10 @@ read_names_from_json() what = ORACLE_VAROU_NAMES; else if ((strcmp(json_object_get_string(name), "Troll Names") == 0)) what = ORACLE_TROLL_NAMES; - else + else { what = -1; + continue; + } n_entries = json_object_array_length(table); for (j = 0; j < n_entries; j++) { @@ -317,8 +319,10 @@ read_action_from_json() continue; else if ((strcmp(json_object_get_string(name), "Combat Event") == 0)) continue; - else + else { what = -1; + continue; + } n_entries = json_object_array_length(table); for (j = 0; j < n_entries; j++) { @@ -370,8 +374,10 @@ read_turning_from_json() what = ORACLE_PLOT_TWISTS; else if ((strcmp(json_object_get_string(name), "Mystic Backlash") == 0)) what = ORACLE_MYSTIC_BACKSLASH; - else + else { what = -1; + continue; + } n_entries = json_object_array_length(table); for (j = 0; j < n_entries; j++) { @@ -423,8 +429,10 @@ read_places_from_json() what = ORACLE_COASTAL; else if ((strcmp(json_object_get_string(name), "Location Descriptors") == 0)) what = ORACLE_DESCRIPTION; - else + else { what = -1; + continue; + } n_entries = json_object_array_length(table); for (j = 0; j < n_entries; j++) {