Core/Chat Commands: Allow to add overlapping teles .

Allow to add overlapping teles like "abc" even if "abcde" already exists. This wasn't possible and a "Teleport already exists" error was thrown instead.
This commit is contained in:
jackpoz committed 2013-10-25 21:50:52 +02:00
1 parent a14bbf773e
commit daf5a4b5c3
3 files changed
+21 -1

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ public:
std::string name = args;
if (sObjectMgr->GetGameTele(name))
if (sObjectMgr->GetGameTeleExactName(name))
{
handler->SendSysMessage(LANG_COMMAND_TP_ALREADYEXIST);
handler->SetSentErrorMessage(true);