Skip to content

Commit

Permalink
Fix compare number with nil handler crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbodingAngel committed Nov 4, 2018
1 parent 1101386 commit 5ea2b28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LuaRules/Gadgets/ai_resource_multiplier.lua
Expand Up @@ -113,7 +113,7 @@ function gadget:Initialize()
ecoUnitsDefs[uDefID] = true ecoUnitsDefs[uDefID] = true
end end
if def.customParams then if def.customParams then
if def.customParams.metal_extractor > 0 then if def.customParams.metal_extractor and def.customParams.metal_extractor > 0 then
mexUnitDefs[uDefID] = def.customParams.metal_extractor mexUnitDefs[uDefID] = def.customParams.metal_extractor
mexUnitDefs[uDefID] = def.extractsMetal mexUnitDefs[uDefID] = def.extractsMetal
ecoUnitsDefs[uDefID] = true ecoUnitsDefs[uDefID] = true
Expand Down

0 comments on commit 5ea2b28

Please sign in to comment.