From 1194cf18735939e525df4248c5a3424789fde60d Mon Sep 17 00:00:00 2001 From: Kobert Date: Mon, 9 Apr 2018 16:12:31 +0200 Subject: Fix for spellcorrecting chars --- DiscoBot/Commands/Gm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'DiscoBot/Commands/Gm.cs') diff --git a/DiscoBot/Commands/Gm.cs b/DiscoBot/Commands/Gm.cs index 60b82fb..c1fa4b1 100644 --- a/DiscoBot/Commands/Gm.cs +++ b/DiscoBot/Commands/Gm.cs @@ -13,7 +13,8 @@ public static string CheckCommand(string name, CommandTypes command, string waffe, int erschwernis = 0) { var comp = new SpellCorrect(); - var chr = Dsa.Chars.OrderBy(x => comp.Compare(x.Name, name)).First(); + var chr = Dsa.Chars.OrderBy(x => comp.Compare(name, x.Name)).First(); + switch (command) { case CommandTypes.Talent: -- cgit v1.2.3-70-g09d2