forked from github/server
fix logic error in json_buildings
This commit is contained in:
parent
85010e5358
commit
b3db14465e
|
@ -114,7 +114,7 @@ static void json_maintenance_i(cJSON *json, maintenance *mt) {
|
|||
}
|
||||
break;
|
||||
default:
|
||||
log_error("maintenance contains unknown attribute %s", child->string);
|
||||
log_error("maintenance contains unknown attribute %s of type %d", child->string, child->type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -139,7 +139,9 @@ static void json_maintenance(cJSON *json, maintenance **mtp) {
|
|||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
json_maintenance_i(json, mt);
|
||||
}
|
||||
}
|
||||
|
||||
static void json_construction(cJSON *json, construction **consp) {
|
||||
|
|
Loading…
Reference in New Issue