summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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[]){",