Исправлена ошибка при удалении самолета
This commit is contained in:
parent
1e4bdd4812
commit
ff9b1a050f
@ -68,7 +68,7 @@ namespace AirBomber
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public bool Remove(int position)
|
public bool Remove(int position)
|
||||||
{
|
{
|
||||||
if (!isCorrectPosition(position))
|
if (!isCorrectPosition(position) || position >= Count)
|
||||||
return false;
|
return false;
|
||||||
_places.RemoveAt(position);
|
_places.RemoveAt(position);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user