diff options
| author | Смердокрыл <smerdokryl@gmail.com> | 2023-06-09 23:21:55 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-09 22:21:55 +0200 |
| commit | 39bebe6a653bdd65160aa7f9fef6501d43884079 (patch) | |
| tree | 2d5a672447f3c33c6530cd705834e2c8c7cf7771 /src | |
| parent | 74a4dc46b49e1902f44a36b5b3155ad103d8f3da (diff) | |
Core/Commands: Fix crash in .character customize chat output (#29069)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Commands/cs_character.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_character.cpp b/src/server/scripts/Commands/cs_character.cpp index 33cdffcd7dc..030fc907d70 100644 --- a/src/server/scripts/Commands/cs_character.cpp +++ b/src/server/scripts/Commands/cs_character.cpp @@ -403,7 +403,7 @@ public: } else { - handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().GetCounter()); + handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().ToString().c_str()); CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG); stmt->setUInt16(0, static_cast<uint16>(AT_LOGIN_CUSTOMIZE)); stmt->setUInt64(1, player->GetGUID().GetCounter()); @@ -427,7 +427,7 @@ public: } else { - handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().GetCounter()); + handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().ToString().c_str()); CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG); stmt->setUInt16(0, uint16(AT_LOGIN_CHANGE_FACTION)); stmt->setUInt64(1, player->GetGUID().GetCounter()); @@ -451,7 +451,7 @@ public: } else { - handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().GetCounter()); + handler->PSendSysMessage(LANG_CUSTOMIZE_PLAYER_GUID, handler->playerLink(*player).c_str(), player->GetGUID().ToString().c_str()); CharacterDatabasePreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_ADD_AT_LOGIN_FLAG); stmt->setUInt16(0, uint16(AT_LOGIN_CHANGE_RACE)); stmt->setUInt64(1, player->GetGUID().GetCounter()); |
