fixed bug where silent weapons (e.g. grenade) would crash trying to load '.aud'

This commit is contained in:
Chris Forbes
2009-12-12 21:20:18 +13:00
parent 5580424011
commit d26558da12

View File

@@ -51,7 +51,8 @@ namespace OpenRa.Game.Effects
public void Tick()
{
if (t == 0)
Sound.Play(Weapon.Report + ".aud");
if (!string.IsNullOrEmpty(Weapon.Report))
Sound.Play(Weapon.Report + ".aud");
t += 40;