Skip to content

Commit

Permalink
Update Il2CppInterop.Runtime/InteropTypes/Arrays/Il2CppReferenceArray.cs
Browse files Browse the repository at this point in the history
Co-authored-by: js6pak <me@6pak.dev>
  • Loading branch information
ds5678 and js6pak authored Oct 5, 2024
1 parent 8f46e7b commit 2ac6a43
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public override T this[int index]
private IntPtr GetElementPointer(int index)
{
ThrowIfIndexOutOfRange(index);
var elementPointer = IntPtr.Add(ArrayStartPointer, index * ourElementTypeSize);
return elementPointer;
return IntPtr.Add(ArrayStartPointer, index * ourElementTypeSize);
}

[return: NotNullIfNotNull(nameof(arr))]
Expand Down

0 comments on commit 2ac6a43

Please sign in to comment.