diff --git a/src/MapsCollection.java b/src/MapsCollection.java index 7dfbfcb..7ce85b4 100644 --- a/src/MapsCollection.java +++ b/src/MapsCollection.java @@ -139,11 +139,11 @@ public class MapsCollection { case "LongMap" -> new MapWithSetGasolineTankerGeneric<>(_pictureWidth, _pictureHeight, new LongMap()); default -> null; }; + _mapStorages.put(mapName, map); } while ((currentLine = reader.readLine()) != null) { map._setGasolineTanker.Insert((DrawingObjectGasolineTanker) DrawingObjectGasolineTanker.Create(currentLine)); } - _mapStorages.put(mapName, map); } return true; }