fix null error
This commit is contained in:
Binary file not shown.
@@ -168,7 +168,7 @@ function BattleManager:getBestAmmo(unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local entry = Spearhead.Util.randomFromList(shells)
|
local entry = Spearhead.Util.randomFromList(shells)
|
||||||
if entry.desc.warhead then
|
if entry and entry.desc and entry.desc.warhead then
|
||||||
local caliber = entry.desc.warhead.caliber
|
local caliber = entry.desc.warhead.caliber
|
||||||
if caliber > 50 then
|
if caliber > 50 then
|
||||||
return 258503344128, 1
|
return 258503344128, 1
|
||||||
|
|||||||
Reference in New Issue
Block a user