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

View file

@ -114,7 +114,7 @@ static void json_maintenance_i(cJSON *json, maintenance *mt) {
} }
break; break;
default: 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,8 +139,10 @@ static void json_maintenance(cJSON *json, maintenance **mtp) {
} }
} }
} }
else {
json_maintenance_i(json, mt); json_maintenance_i(json, mt);
} }
}
static void json_construction(cJSON *json, construction **consp) { static void json_construction(cJSON *json, construction **consp) {
cJSON *child; cJSON *child;