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();