Skip to content

Commit

Permalink
Fix cargo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiannas committed Oct 3, 2023
1 parent 1cd2de5 commit 4c14464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/TaskController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public TaskErrorCode CanAcceptMission(PlayerTask mission)
if (mission.PlanetFrom != sc.CurrentPlanet || sc.IsTravelling)
return TaskErrorCode.INVALID_START_PLANET;

if (mission.CargoUnits >= sc.MaxCargoCapacity - sc.Cargo)
if (mission.CargoUnits > sc.MaxCargoCapacity - sc.Cargo)
return TaskErrorCode.INSUFFICIENT_SPACE;

return TaskErrorCode.OK;
Expand Down

0 comments on commit 4c14464

Please sign in to comment.