Core/Misc: Fixed some more issues found by static code analysis tools.
This commit is contained in:
1 parent
9c7de29e93
commit
4782cc4650
3 files changed
+22
-7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user