From: "Enrico Weigelt, metux IT consult" <enrico.weig...@gr13.net>
--- src/net/sf/freecol/client/gui/TilePopup.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/net/sf/freecol/client/gui/TilePopup.java b/src/net/sf/freecol/client/gui/TilePopup.java index ab523282f60..bb2058547a7 100644 --- a/src/net/sf/freecol/client/gui/TilePopup.java +++ b/src/net/sf/freecol/client/gui/TilePopup.java @@ -357,8 +357,14 @@ public final class TilePopup extends JPopupMenu { add(menuItem); } - Unit unit = find(tile.getUnits(), - u -> u.canCarryGoods() && u.hasSpaceLeft()); + Unit unit = null; + for (Unit u : tile.getUnits()) { + if (u.canTakeGoods()) { + unit = u; + break; + } + } + if (unit != null) { DebugUtils.addGoodsAdditionEntry(freeColClient, unit, this); } -- 2.11.0.rc0.7.gbe5a750 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Freecol-developers mailing list Freecol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freecol-developers