From e27749cbd93b73444124bfe686caae9114c91ab1 Mon Sep 17 00:00:00 2001 From: fsb-dev02 <302744410+fsb-dev02@users.noreply.github.com> Date: Tue, 28 Jul 2026 13:49:40 -0300 Subject: [PATCH] Fix failure to load when objects have a 'propertytype' JSON field. --- cute_tiled.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cute_tiled.h b/cute_tiled.h index eaa6d7d3..82def832 100644 --- a/cute_tiled.h +++ b/cute_tiled.h @@ -1928,6 +1928,11 @@ int cute_tiled_read_properties_internal(cute_tiled_map_internal_t* m, cute_tiled // Read in the property name. cute_tiled_skip_until_after(m, ':'); cute_tiled_intern_string(m, &prop.name); + + // If the field "propertytype" exists, skip it. + cute_tiled_skip_until_after(m, '"'); + if (cute_tiled_next(m) == 'p') + cute_tiled_skip_until_after(m, ','); // Read in the property type. The value type is deduced while parsing, this is only used for float because the JSON format omits decimals on round floats. cute_tiled_skip_until_after(m, ':');