This commit is contained in:
Yunusov_Niyaz 2023-10-28 00:28:20 +04:00
parent 5b6e6256ff
commit 38a949a2ca

View File

@ -34,7 +34,6 @@ namespace ProjectTrolleybus.Generics
if (!(position >= 0 && position <= Count && _places.Count < _maxCount)) if (!(position >= 0 && position <= Count && _places.Count < _maxCount))
return false; return false;
_places.Insert(position, trolleybus); _places.Insert(position, trolleybus);
_places[position] = trolleybus;
return true; return true;
} }