diff --git a/src/LDtk.zig b/src/LDtk.zig index 6df5ae5..07bb610 100644 --- a/src/LDtk.zig +++ b/src/LDtk.zig @@ -669,6 +669,8 @@ fn float(value_opt: ?std.json.Value) ?f64 { const value = value_opt orelse return null; return switch (value) { .Float => |float| float, + // Integers are valid floats + .Integer => |int| @intToFloat(f64, int), else => null, }; }