diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs
index 6bb24f9..0cb16a2 100644
--- a/Raylib-cs/types/Raylib.Utils.cs
+++ b/Raylib-cs/types/Raylib.Utils.cs
@@ -916,19 +916,12 @@ public static unsafe partial class Raylib
}
/// Load model animations from file
- public static ReadOnlySpan LoadModelAnimations(string fileName, ref uint animCount)
+ public static ModelAnimation* LoadModelAnimations(string fileName, ref uint animCount)
{
using var str1 = fileName.ToAnsiBuffer();
fixed (uint* p = &animCount)
{
- ModelAnimation* modelAnimations = LoadModelAnimations(str1.AsPointer(), p);
-
- if ((IntPtr)modelAnimations == IntPtr.Zero)
- {
- throw new ApplicationException("Failed to load animation");
- }
-
- return new ReadOnlySpan(modelAnimations, (int)animCount);
+ return LoadModelAnimations(str1.AsPointer(), p);
}
}