diff options
author | kdx <kikoodx@paranoici.org> | 2024-01-23 10:32:58 +0100 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2024-01-23 10:32:58 +0100 |
commit | 7e27aed0f603c26a853ef5d2c630505a79318227 (patch) | |
tree | 1252f042b7d0dce8bab4230d190ca0baa22914d4 | |
parent | 5fc49efb18af15f0558bff946774799f11446c60 (diff) | |
download | tiled2c-7e27aed0f603c26a853ef5d2c630505a79318227.tar.gz |
bugfix?
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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[]){", |