Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/game/ObjectGuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "ObjectMgr.h"

#include <sstream>
#include <iomanip>

char const* ObjectGuid::GetTypeName(HighGuid high)
{
Expand Down Expand Up @@ -56,6 +57,7 @@ char const* ObjectGuid::GetTypeName(HighGuid high)
std::string ObjectGuid::GetString() const
{
std::ostringstream str;
str << "0x" << std::setfill('0') << std::setw(16) << std::hex << m_guid << " ";
str << GetTypeName();

if (IsPlayer())
Expand All @@ -65,7 +67,7 @@ std::string ObjectGuid::GetString() const
str << " " << name;
}

str << " (";
str << " (" << std::dec;
if (HasEntry())
str << (IsPet() ? "Petnumber: " : "Entry: ") << GetEntry() << " ";
str << "Guid: " << GetCounter() << ")";
Expand Down