Небольшие правки.

This commit is contained in:
2022-11-17 18:55:12 +04:00
parent 8bbd7e2df8
commit dd7ef28934
2 changed files with 3 additions and 3 deletions

View File

@@ -26,9 +26,9 @@ public class MapWithSetShipsGeneric<T extends IDrawingObject, U extends Abstrac
}
public T Delete(int position)
{
T ship=_setShips.Get(position);
T ship=_setShips.Remove(position);
_deletedShips.add(ship);
return _setShips.Remove(position);
return ship;
}
public BufferedImage ShowSet()
{

View File

@@ -25,7 +25,7 @@ public class MapsCollection {
}
public void DelMap(String name)
{
if (_mapStorages.containsKey(name)) _mapStorages.remove(name);
_mapStorages.remove(name);
}
public MapWithSetShipsGeneric<DrawingObjectShip,AbstractMap> Get(String ind)
{