Lab4 #8

Closed
d.agliullov wants to merge 23 commits from Lab4 into Lab3.0
Showing only changes of commit eace47e5ed - Show all commits

View File

@ -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;