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