mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Logging: Fixed ObjectGuid::ToString to output full guid
This commit is contained in:
@@ -81,10 +81,10 @@ char const* ObjectGuid::GetTypeName(HighGuid high)
|
||||
std::string ObjectGuid::ToString() const
|
||||
{
|
||||
std::ostringstream str;
|
||||
str << "GUID Full: 0x" << std::hex << std::setw(16) << std::setfill('0') << _low << std::dec;
|
||||
str << "GUID Full: 0x" << std::hex << std::uppercase << std::setw(16) << std::setfill('0') << _high << std::setw(16) << _low << std::dec << std::nouppercase;
|
||||
str << " Type: " << GetTypeName();
|
||||
if (HasEntry())
|
||||
str << (IsPet() ? " Pet number: " : " Entry: ") << GetEntry() << " ";
|
||||
str << (IsPet() ? " Pet number: " : " Entry: ") << GetEntry();
|
||||
|
||||
str << " Low: " << GetCounter();
|
||||
return str.str();
|
||||
|
||||
Reference in New Issue
Block a user