Scripts/Commands: Fix "cannot pass objects of non-trivially-copyable type ‘std::string’ through ‘...’"

This commit is contained in:
Nay
2013-03-15 23:39:51 +00:00
parent 3b9ab08029
commit efdbc68cae
2 changed files with 3 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
DELETE FROM `trinity_string` where `entry`=363;
DELETE FROM `trinity_string` WHERE `entry`=363;
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
(363, 'Player %s cannot whisper you any longer.');

View File

@@ -213,12 +213,12 @@ public:
if (Player* player = sObjectAccessor->FindPlayerByName(name))
{
handler->GetSession()->GetPlayer()->RemoveFromWhisperWhiteList(player->GetGUID());
handler->PSendSysMessage(LANG_COMMAND_WHISPEROFFPLAYER, name);
handler->PSendSysMessage(LANG_COMMAND_WHISPEROFFPLAYER, name.c_str());
return true;
}
else
{
handler->PSendSysMessage(LANG_PLAYER_NOT_FOUND, name);
handler->PSendSysMessage(LANG_PLAYER_NOT_FOUND, name.c_str());
handler->SetSentErrorMessage(true);
return false;
}