Core/Logging: Fixed ObjectGuid::ToString to output full guid

This commit is contained in:
Shauren
2015-03-09 11:02:06 +01:00
parent 14c5e67a89
commit 153f3a264b

View File

@@ -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();