Core/Misc: Fixed some more issues found by static code analysis tools.

This commit is contained in:
Ascathor committed 2013-09-15 13:17:37 +02:00
1 parent 9c7de29e93
commit 4782cc4650
3 files changed
+22 -7

No files matched your search

+3 -1
View File
@@ -630,7 +630,9 @@ void WorldSession::HandlePetRename(WorldPacket& recvData)
}
std::wstring wname;
Utf8toWStr(name, wname);
if (!Utf8toWStr(name, wname))
return;
if (!ObjectMgr::CheckDeclinedNames(wname, declinedname))
{
SendPetNameInvalid(PET_NAME_DECLENSION_DOESNT_MATCH_BASE_NAME, name, &declinedname);