We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 440904d commit a8de0d5Copy full SHA for a8de0d5
api/AltV.Net/Elements/Entities/Player.cs
@@ -365,10 +365,9 @@ public Decoration[] GetDecorations()
365
var decorations = new Decoration[size];
366
var data = new IntPtr[size];
367
Marshal.Copy(ptr, data, 0, (int) size);
368
-
369
for (ulong i = 0; i < size; i++)
370
{
371
- var structure = Marshal.PtrToStructure<DecorationInternal>(ptr);
+ var structure = Marshal.PtrToStructure<DecorationInternal>(data[i]);
372
decorations[i] = structure.ToPublic();
373
}
374
Core.Library.Server.Player_DeallocDecoration(ptr);
0 commit comments