Pass array by-ref (#4936)

Yeah idk how to fix this otherwise but using this would be nicer.
This commit is contained in:
metalgearsloth
2024-03-03 19:41:29 +11:00
committed by GitHub
parent 250313e1ed
commit 43670a8ddd

View File

@@ -11,7 +11,7 @@ namespace Robust.Shared.Utility
/// <summary>
/// Ensures that the specified array has the specified length.
/// </summary>
public static void EnsureLength<T>(this T[] array, int length)
public static void EnsureLength<T>(ref T[] array, int length)
{
if (array.Length > length)
return;