From b3db14465e014b5124993cf2c53d2647b297212b Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 1 Feb 2016 13:59:35 +0100 Subject: [PATCH] fix logic error in json_buildings --- src/kernel/jsonconf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/kernel/jsonconf.c b/src/kernel/jsonconf.c index fc2d9dd20..099b7a228 100644 --- a/src/kernel/jsonconf.c +++ b/src/kernel/jsonconf.c @@ -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) { } } } - json_maintenance_i(json, mt); + else { + json_maintenance_i(json, mt); + } } static void json_construction(cJSON *json, construction **consp) {