summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2024-01-23 10:32:58 +0100
committerkdx <kikoodx@paranoici.org>2024-01-23 10:32:58 +0100
commit7e27aed0f603c26a853ef5d2c630505a79318227 (patch)
tree1252f042b7d0dce8bab4230d190ca0baa22914d4
parent5fc49efb18af15f0558bff946774799f11446c60 (diff)
downloadtiled2c-7e27aed0f603c26a853ef5d2c630505a79318227.tar.gz
bugfix?
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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[]){",