mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Pass array by-ref (#4936)
Yeah idk how to fix this otherwise but using this would be nicer.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user