test: FleetSpeedAndMass

This commit is contained in:
IliaDenisov
2026-02-06 19:52:47 +03:00
parent 3dd0440832
commit 93baafe2a0
3 changed files with 44 additions and 2 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ func (c *Cache) LoadCargo(ri int, groupIndex uint, ct game.CargoType, ships uint
sgi = nsgi
}
capacity := c.ShipGroup(sgi).CargoCapacity(st)
freeShipGroupCargoLoad := capacity - c.ShipGroup(sgi).Load.F()
freeShipGroupCargoLoad := capacity - float64(c.ShipGroup(sgi).Load)
if freeShipGroupCargoLoad == 0 {
return e.NewCargoLoadNoSpaceLeftError()
}