From d8f4d432455694bedbbe6346a0299d9e11f58e0f Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Wed, 14 Dec 2022 09:31:16 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MapsCollection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MapsCollection.java b/src/MapsCollection.java index 3bdccf0..b8e1783 100644 --- a/src/MapsCollection.java +++ b/src/MapsCollection.java @@ -150,11 +150,11 @@ public class MapsCollection { case "SecondMap" -> new MapWithSetWarshipsGeneric<>(_pictureWidth, _pictureHeight, new SecondMap()); default -> null; }; + _mapStorages.put(mapName, map); } while ((currentLine = reader.readLine()) != null) { map._setWarship.Insert((DrawingObjectWarship) DrawingObjectWarship.Create(currentLine)); } - _mapStorages.put(mapName, map); } return true; }