Фикс бага с удалением объекта

This commit is contained in:
Никита Потапов 2023-11-20 19:51:30 +04:00
parent aa3ed0da58
commit bbdd588a3d

View File

@ -71,10 +71,7 @@ namespace ProjectStormtrooper
public static T? operator -(PlanesGenericCollection<T, U> collect, int pos)
{
T? obj = collect._collection[pos];
if (obj != null)
{
collect._collection.Remove(pos);
}
collect._collection.Remove(pos);
return obj;
}
/// <summary>