From 7e27aed0f603c26a853ef5d2c630505a79318227 Mon Sep 17 00:00:00 2001 From: kdx Date: Tue, 23 Jan 2024 10:32:58 +0100 Subject: bugfix? --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f5e36dc..a35ff7e 100644 --- a/src/main.c +++ b/src/main.c @@ -129,7 +129,7 @@ process_object(cJSON *json) cJSON_IsTrue(visible)); cJSON *properties = cJSON_GetObjectItem(json, "properties"); - if (!cJSON_IsArray(properties)) + if (!cJSON_IsArray(properties) || cJSON_GetArraySize(properties) == 0) printf("0,0"); else { printf("%d,(const Tiled2cProperty[]){", -- cgit v1.2.3