Exit loop as soon as result cannot change anymore.
The default AI iterates over all own fleets when trying to find a target planet which does not yet have an own incoming fleet. As soon as an own incoming fleet is found, the loop can abort as checking the remaining fleets won't change the result anymore. (cherry picked from commit 489f0275)
Showing with 2 additions and 0 deletions