fix: remove fleet when deleting last group
This commit is contained in:
@@ -130,7 +130,7 @@ func (c *Cache) SendRoutedGroups() {
|
||||
if toLoad > sgCapacity {
|
||||
toLoad = sgCapacity
|
||||
} else if maxShips := uint(math.Ceil(toLoad / (sgCapacity / float64(ships)))); maxShips < ships {
|
||||
newGroupIdx := c.breakGroupUnsafe(c.RaceIndex(sg.OwnerID), sgi, maxShips)
|
||||
newGroupIdx := c.unsafeBreakGroup(c.RaceIndex(sg.OwnerID), sgi, maxShips)
|
||||
sgi = newGroupIdx
|
||||
sg = c.ShipGroup(newGroupIdx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user