Skip to content

Commit c628bc7

Browse files
committed
Fix bug in IsFull()
1 parent e42f32d commit c628bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starter_kits/Go/src/hlt/Entities.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (s *Ship) GetID() int { return s.E.id }
6161
// IsFull - Returns true if the ship is full
6262
func (s *Ship) IsFull() bool {
6363
var maxHalite, _ = gameconfig.GetInstance().GetInt(gameconfig.MaxHalite)
64-
return s.Halite > maxHalite
64+
return s.Halite >= maxHalite
6565
}
6666

6767
// MakeDropoff - Creates command to turn the ship into a dropoff

0 commit comments

Comments
 (0)