Skip to content

Commit a8de0d5

Browse files
committed
fix(server): fix more GetDecorationsCall
1 parent 440904d commit a8de0d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/AltV.Net/Elements/Entities/Player.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,9 @@ public Decoration[] GetDecorations()
365365
var decorations = new Decoration[size];
366366
var data = new IntPtr[size];
367367
Marshal.Copy(ptr, data, 0, (int) size);
368-
369368
for (ulong i = 0; i < size; i++)
370369
{
371-
var structure = Marshal.PtrToStructure<DecorationInternal>(ptr);
370+
var structure = Marshal.PtrToStructure<DecorationInternal>(data[i]);
372371
decorations[i] = structure.ToPublic();
373372
}
374373
Core.Library.Server.Player_DeallocDecoration(ptr);

0 commit comments

Comments
 (0)