fix logic error in json_buildings

This commit is contained in:
Enno Rehling 2016-02-01 13:59:35 +01:00
parent 85010e5358
commit b3db14465e
1 changed files with 4 additions and 2 deletions

View File

@ -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) {