diff --git a/Tank/src/TanksGenericStorage.java b/Tank/src/TanksGenericStorage.java index a6760e6..624d8d1 100644 --- a/Tank/src/TanksGenericStorage.java +++ b/Tank/src/TanksGenericStorage.java @@ -156,8 +156,8 @@ public class TanksGenericStorage { List reversedSet = Arrays.asList(set); Collections.reverse(reversedSet); for (String elem : reversedSet) { - DrawingArmoVehicle train = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight); - if (train == null || collection.Add(train) == -1) + DrawingArmoVehicle vehicle = ExtentionDrawingTank.CreateDrawingTank(elem, _separatorForObject, _pictureWidth, _pictureHeight); + if (vehicle == null || collection.Add(vehicle) == -1) return false; } _tankStorages.put(record[0], collection);