Core/Commands: Fixes not being able to use just name for teleporting

This commit is contained in:
hondacrx
2021-01-19 10:51:56 -05:00
parent 5b3dd1895f
commit 09a2f59d3a
+3 -3
View File
@@ -346,10 +346,10 @@ namespace Game.Chat
if (string.IsNullOrEmpty(cId)) if (string.IsNullOrEmpty(cId))
return null; return null;
if (!uint.TryParse(cId, out uint id)) if (uint.TryParse(cId, out uint id))
return null; return Global.ObjectMgr.GetGameTele(id);
return Global.ObjectMgr.GetGameTele(id); return Global.ObjectMgr.GetGameTele(cId);
} }
public string ExtractQuotedArg(string str) public string ExtractQuotedArg(string str)