diff --git a/Tank/src/TanksGenericStorage.java b/Tank/src/TanksGenericStorage.java index 1d8569f..f133745 100644 --- a/Tank/src/TanksGenericStorage.java +++ b/Tank/src/TanksGenericStorage.java @@ -32,7 +32,7 @@ public class TanksGenericStorage { data.append(key).append("\n"); for (DrawingArmoVehicle elem: _tankStorages.get(key).getTanks(100)) { if(_tankStorages.get(key) == null) - break; + return false; data.append(elem != null ? ExtentionDrawingTank.GetDataForSave(elem, _separatorForObjectWR) + "\n" : ""); }