Changes

m
no edit summary
Line 141: Line 141:  
end
 
end
 
if ShipCapabilities:_is_submarine(ship) then
 
if ShipCapabilities:_is_submarine(ship) then
if ship:suffix():match("Elite") or ship:suffix():match("Flagship") then
+
if ship:suffix() and (ship:suffix():match("Elite") or ship:suffix():match("Flagship")) then
 
table.insert(roles, self._opening_torpedo_label)
 
table.insert(roles, self._opening_torpedo_label)
 
end
 
end
Anonymous user