diff --git a/lib/preludes/raylib-prelude.zig b/lib/preludes/raylib-prelude.zig index eb59c9e..71ff73e 100755 --- a/lib/preludes/raylib-prelude.zig +++ b/lib/preludes/raylib-prelude.zig @@ -1282,7 +1282,7 @@ pub const Font = extern struct { } /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set - pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: []i32) Font { + pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: ?[]i32) Font { return rl.loadFontEx(fileName, fontSize, fontChars); } diff --git a/lib/raylib.zig b/lib/raylib.zig index 18f5e2b..ab0eea2 100644 --- a/lib/raylib.zig +++ b/lib/raylib.zig @@ -1282,7 +1282,7 @@ pub const Font = extern struct { } /// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set - pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: []i32) Font { + pub fn initEx(fileName: [*:0]const u8, fontSize: i32, fontChars: ?[]i32) Font { return rl.loadFontEx(fileName, fontSize, fontChars); }