as an aftermath to bug 3302 we can now determine a competitor's fleet also from the race log competitor assignments

This commit is contained in:
Axel Uhl committed 2015-10-02 10:41:55 +02:00
1 parent cb635bc6ac
commit 72a149d7b1
1 file changed
+3 -3
@@ -120,9 +120,9 @@ public abstract class AbstractRaceColumn extends SimpleAbstractRaceColumn implem
@Override
public Fleet getFleetOfCompetitor(Competitor competitor) {
for (Map.Entry<Fleet, TrackedRace> e : trackedRaces.entrySet()) {
if (Util.contains(e.getValue().getRace().getCompetitors(), competitor)) {
return e.getKey();
for (final Fleet fleet : getFleets()) {
if (Util.contains(getAllCompetitors(fleet), competitor)) {
return fleet;
}
}
return null;