fix crash in TeslaInstantKills

This commit is contained in:
Chris Forbes
2010-05-29 09:43:07 +12:00
parent b61db88402
commit 94e8edb1cd

View File

@@ -9,7 +9,7 @@ namespace OpenRA.Mods.RA
{
public float GetDamageModifier( WarheadInfo warhead )
{
if( warhead.InfDeath == 5 )
if( warhead != null && warhead.InfDeath == 5 )
return 1000f;
return 1f;
}