Permalink
Browse files

Fix compare number with nil handler crash

  • Loading branch information...
ForbodingAngel committed Nov 4, 2018
1 parent 1101386 commit 5ea2b28862c2bf94d018f5f6920eb253f8a026a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 LuaRules/Gadgets/ai_resource_multiplier.lua
@@ -113,7 +113,7 @@ function gadget:Initialize()
ecoUnitsDefs[uDefID] = true
end
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.extractsMetal
ecoUnitsDefs[uDefID] = true

0 comments on commit 5ea2b28

Please sign in to comment.