From aee126336212aadad63290c69ca5a6a313510e49 Mon Sep 17 00:00:00 2001 From: kdx Date: Tue, 23 Jan 2024 16:27:03 +0100 Subject: bugfix! --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index c5accb1..185107a 100644 --- a/src/main.c +++ b/src/main.c @@ -247,9 +247,11 @@ process_tile(cJSON *json) fprintf(stderr, "animation is no array\n"); return -1; } - printf("{%d,\"%s\",%f,", + printf("{%d,%s%s%s,%f,", id->valueint, + (type != NULL) ? "\"" : "", (type != NULL) ? type->valuestring : "0", + (type != NULL) ? "\"" : "", (proba != NULL) ? proba->valuedouble : 0.0); if (anim == NULL) printf("0,0"); -- cgit v1.2.3