Core/Commands: Fixes not being able to use just name for teleporting
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user