diff --git a/game-core/src/main/java/games/strategy/triplea/ui/mapdata/MapData.java b/game-core/src/main/java/games/strategy/triplea/ui/mapdata/MapData.java index be617e3d679..2fb19659b25 100644 --- a/game-core/src/main/java/games/strategy/triplea/ui/mapdata/MapData.java +++ b/game-core/src/main/java/games/strategy/triplea/ui/mapdata/MapData.java @@ -536,15 +536,7 @@ public void verify(final GameData data) { private static void verifyKeys( final GameData data, final Set keys, final String dataTypeForErrorMessage) { final StringBuilder errors = new StringBuilder(); - final Iterator iter = keys.iterator(); - while (iter.hasNext()) { - final String name = iter.next(); - final Territory terr = data.getMap().getTerritory(name); - // allow loading saved games with missing territories; just ignore them - if (terr == null) { - iter.remove(); - } - } + for (final Territory terr : data.getMap().getTerritories()) { if (!keys.contains(terr.getName())) { errors