Правлен класс SetGeneric
This commit is contained in:
parent
3194d59c46
commit
89c04361e4
@ -66,7 +66,7 @@ namespace ProjectStormtrooper
|
||||
public T? Remove(int position)
|
||||
{
|
||||
// Проверка позиции
|
||||
if (Count == 0 || position < 0 || position >= _maxCount)
|
||||
if (position < 0 || position >= Count)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@ -85,7 +85,7 @@ namespace ProjectStormtrooper
|
||||
get
|
||||
{
|
||||
// Проверка позиции
|
||||
if (position < 0 || position >= _maxCount)
|
||||
if (position < 0 || position >= Count)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user