Skip to content

Commit

Permalink
Fix bug with returning nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Feb 24, 2024
1 parent f303b2a commit 6c22f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/sim/Unit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1085,9 +1085,9 @@ Unit = ClassUnit(moho.unit_methods, IntelComponent, VeterancyComponent) {
local buildrate = cUnitGetBuildRate(self)
if buildrate < 0 then
buildrate = 0.00001
else
return buildrate
end

return buildrate
end,

---@param self Unit
Expand Down

0 comments on commit 6c22f57

Please sign in to comment.