fix: remove fleet when deleting last group

This commit is contained in:
IliaDenisov
2026-02-10 21:14:15 +03:00
parent 56998d4c2d
commit 43dc8ab3f9
7 changed files with 29 additions and 18 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func (c *Cache) shipGroupUpgrade(ri int, groupID uuid.UUID, techInput string, li
// break group if needed
if maxUpgradableShips < sg.Number {
nsgi, err := c.breakGroupSafe(ri, groupID, maxUpgradableShips)
nsgi, err := c.breakGroup(ri, groupID, maxUpgradableShips)
if err != nil {
return err
}