diff options
author | Kobert <Kassian.Kobert@gmail.com> | 2018-04-09 16:12:31 +0200 |
---|---|---|
committer | Kobert <Kassian.Kobert@gmail.com> | 2018-04-09 16:12:31 +0200 |
commit | 1194cf18735939e525df4248c5a3424789fde60d (patch) | |
tree | 1f9c11c142b60672ef42e317b87e95170cbf6a79 /DiscoBot/Commands | |
parent | db846b1eebf4ee35ea7f72024c0db753b73d0177 (diff) |
Fix for spellcorrecting chars
Diffstat (limited to 'DiscoBot/Commands')
-rw-r--r-- | DiscoBot/Commands/Gm.cs | 3 |
1 files changed, 2 insertions, 1 deletions
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: |