From: "Enrico Weigelt, metux IT consult" <[email protected]>
---
.../sf/freecol/client/gui/panel/report/ReportEducationPanel.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git
a/src/net/sf/freecol/client/gui/panel/report/ReportEducationPanel.java
b/src/net/sf/freecol/client/gui/panel/report/ReportEducationPanel.java
index b2bcf13593c..136ec672a7d 100644
--- a/src/net/sf/freecol/client/gui/panel/report/ReportEducationPanel.java
+++ b/src/net/sf/freecol/client/gui/panel/report/ReportEducationPanel.java
@@ -75,7 +75,14 @@ public final class ReportEducationPanel extends ReportPanel {
reportPanel.add(teacherPanel, "split 2, flowy, grow");
JPanel studentPanel =
getPanel("report.education.students");
for (Unit unit : colony.getUnits()) {
- Unit teacher = find(teachers, u ->
unit.canBeStudent(u));
+ Unit teacher = null;
+ for (Unit u : teachers) {
+ if (unit.canBeStudent(u)) {
+ teacher = u;
+ break;
+ }
+ }
+
if (teacher != null) {
UnitLabel ul = new UnitLabel(freeColClient, unit,
true, true);
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers