Updated to 8.2.0.31429 (scripts disabled atm, they still need updated)
Code Port from TrinityCore https://github.com/TrinityCore/TrinityCore Casc from WoW-Tools https://github.com/WoW-Tools/CASCExplorer
This commit is contained in:
@@ -103,6 +103,11 @@ namespace System.Collections.Generic
|
||||
int cur = list.Count;
|
||||
if (size < cur)
|
||||
list.RemoveRange((int)size, cur - (int)size);
|
||||
else
|
||||
{
|
||||
for (var i = list.Count; i < size; ++i)
|
||||
list.Add(default(T));
|
||||
}
|
||||
}
|
||||
|
||||
public static void RandomResize<T>(this IList<T> list, uint size)
|
||||
|
||||
Reference in New Issue
Block a user