add sounds for grenades; fix crash in -2

This commit is contained in:
Chris Forbes
2010-05-01 14:58:06 +12:00
parent 0c81356449
commit affd853a96
2 changed files with 3 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ namespace OpenRA
public static bool IsVisible(this Actor a)
{
if (a.World.LocalPlayer.Shroud.Disabled)
if (a.World.LocalPlayer != null && a.World.LocalPlayer.Shroud.Disabled)
return true;
var shroud = a.World.WorldActor.traits.Get<Shroud>();