From 5a4b922514484db1a0060e5c4301d4e271a654c7 Mon Sep 17 00:00:00 2001 From: prodigygirl Date: Sat, 3 Dec 2022 14:30:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=20=D0=B7=D0=B0=D0=BC?= =?UTF-8?q?=D0=B5=D1=87=D0=B0=D0=BD=D0=B8=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/MapsCollection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/MapsCollection.java b/src/main/java/MapsCollection.java index 6c56a14..e75e3df 100644 --- a/src/main/java/MapsCollection.java +++ b/src/main/java/MapsCollection.java @@ -153,7 +153,8 @@ public class MapsCollection { if (_mapStorages.containsKey(elem[0])) { _mapStorages.get(elem[0]).removeAllCars(); } - _mapStorages.put(elem[0], new MapWithSetArmoredCarsGeneric<>(_pictureWidth, _pictureHeight, map)); + else + _mapStorages.put(elem[0], new MapWithSetArmoredCarsGeneric<>(_pictureWidth, _pictureHeight, map)); _mapStorages.get(elem[0]).LoadData(elem[2].split(String.valueOf(separatorData))); } catch (IOException e) { e.printStackTrace();