fix null error

This commit is contained in:
2025-06-13 14:21:55 +02:00
parent 97d551b3d0
commit f558426dc8
2 changed files with 1 additions and 1 deletions
Binary file not shown.
@@ -168,7 +168,7 @@ function BattleManager:getBestAmmo(unit)
end
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
if caliber > 50 then
return 258503344128, 1