Skip to content

Commit

Permalink
annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Apr 22, 2024
1 parent fdad3b5 commit d782c90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent) {
---@param self Unit
GetBuildRate = function(self)
local buildrate = cUnitGetBuildRate(self)
-- prevent division by zero
if buildrate <= 0 then
buildrate = 0.00001
end
Expand Down

0 comments on commit d782c90

Please sign in to comment.