fix: remove fleet when deleting last group
This commit is contained in:
@@ -22,7 +22,7 @@ func (c *Cache) CreateShips(ri int, shipTypeName string, planetNumber uint, quan
|
||||
return e.NewEntityNotOwnedError("planet #%d", planetNumber)
|
||||
}
|
||||
|
||||
c.createShipsUnsafe(ri, class.ID, p.Number, uint(quantity))
|
||||
c.unsafeCreateShips(ri, class.ID, p.Number, uint(quantity))
|
||||
|
||||
return nil
|
||||
}
|
||||
@@ -137,7 +137,7 @@ func VotingWinners(calc []*VoteGroup, gameVotes float64) []int {
|
||||
}
|
||||
|
||||
func (c *Cache) CreateShipsUnsafe_T(ri int, classID uuid.UUID, planet uint, quantity uint) {
|
||||
c.createShipsUnsafe(ri, classID, planet, quantity)
|
||||
c.unsafeCreateShips(ri, classID, planet, quantity)
|
||||
}
|
||||
|
||||
func (c *Cache) WipeRace(ri int) {
|
||||
|
||||
Reference in New Issue
Block a user