Skip to content

Commit

Permalink
Fix units not rebuilding on army transfer (FAForever#6106)
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Apr 22, 2024
1 parent 5f7b2a9 commit 23ebe48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog/3810.md
Expand Up @@ -4,6 +4,8 @@

- (#6102) Fix Ahwassa's bomb dealing full damage to ASF.

- (#6106) Fix partially built units not transferring properly in Full Share.

## Balance

- (#6060) Make shields absorb ACU explosions.
Expand Down
3 changes: 2 additions & 1 deletion lua/sim/Unit.lua
Expand Up @@ -1094,7 +1094,8 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent) {
---@param self Unit
GetBuildRate = function(self)
local buildrate = cUnitGetBuildRate(self)
if buildrate < 0 then
-- prevent division by zero
if buildrate <= 0 then
buildrate = 0.00001
end

Expand Down

0 comments on commit 23ebe48

Please sign in to comment.