From 54e36ecf307603688bb61fdd2a4d32850abc9493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 3 Aug 2014 22:11:38 +0200 Subject: [PATCH] use ToLowerInvariant for all weapon rules --- OpenRA.Mods.D2k/ThrowsShrapnel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.D2k/ThrowsShrapnel.cs b/OpenRA.Mods.D2k/ThrowsShrapnel.cs index 12e6db72da..6a219bd97b 100644 --- a/OpenRA.Mods.D2k/ThrowsShrapnel.cs +++ b/OpenRA.Mods.D2k/ThrowsShrapnel.cs @@ -37,7 +37,7 @@ namespace OpenRA.Mods.D2k { foreach (var name in info.Weapons) { - var wep = self.World.Map.Rules.Weapons[name]; + var wep = self.World.Map.Rules.Weapons[name.ToLowerInvariant()]; var pieces = self.World.SharedRandom.Next(info.Pieces[0], info.Pieces[1]); var range = self.World.SharedRandom.Next(info.Range[0].Range, info.Range[1].Range);