refactor: game test data
This commit is contained in:
@@ -69,7 +69,9 @@ func (g Game) joinShipGroupToFleetInternal(ri int, fleetName string, group, coun
|
||||
}
|
||||
}
|
||||
|
||||
if g.ShipGroups[sgi].Number != count && count > 0 {
|
||||
if count > 0 &&
|
||||
g.ShipGroups[sgi].Number != count {
|
||||
|
||||
newGroup := g.ShipGroups[sgi]
|
||||
newGroup.Number -= count
|
||||
g.ShipGroups[sgi].Number = count
|
||||
|
||||
Reference in New Issue
Block a user