From 6992decad074a68fd85aa6cc8afecec31dd7b224 Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Fri, 23 Oct 2015 02:37:39 -0500 Subject: [PATCH] InvalidOperationException => YamlException in SpreadDamageWarhead --- OpenRA.Mods.Common/Warheads/SpreadDamageWarhead.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/Warheads/SpreadDamageWarhead.cs b/OpenRA.Mods.Common/Warheads/SpreadDamageWarhead.cs index 94dd11d8e6..2ea493e7db 100644 --- a/OpenRA.Mods.Common/Warheads/SpreadDamageWarhead.cs +++ b/OpenRA.Mods.Common/Warheads/SpreadDamageWarhead.cs @@ -35,11 +35,11 @@ namespace OpenRA.Mods.Common.Warheads if (Range != null) { if (Range.Length != 1 && Range.Length != Falloff.Length) - throw new InvalidOperationException("Number of range values must be 1 or equal to the number of Falloff values."); + throw new YamlException("Number of range values must be 1 or equal to the number of Falloff values."); for (var i = 0; i < Range.Length - 1; i++) if (Range[i] > Range[i + 1]) - throw new InvalidOperationException("Range values must be specified in an increasing order."); + throw new YamlException("Range values must be specified in an increasing order."); } else Range = Exts.MakeArray(Falloff.Length, i => i * Spread);