local shipType = shipInfo.type == 'Light Carrier' and shipInfo.asw and type(shipInfo.asw[1]) == 'number' and shipInfo.asw[1] > 0 and string.format('<span class="explain" title="CVE">%s</span>', shipType) or shipType
+
local shipType = shipInfo.type == 'Light Carrier' and type(shipInfo.asw) == 'table' and type(shipInfo.asw[1]) == 'number' and shipInfo.asw[1] > 0 and string.format('<span class="explain" title="CVE">%s</span>', shipType) or shipType