From eeffa41a6784c093bf4136f2b633e9513d0903c1 Mon Sep 17 00:00:00 2001 From: balakethelock <111737968+balakethelock@users.noreply.github.com> Date: Sat, 9 Mar 2024 10:06:58 +0100 Subject: [PATCH] Append real GUID in hex to ObjectGUID::GetString() --- src/game/ObjectGuid.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/ObjectGuid.cpp b/src/game/ObjectGuid.cpp index 74cc07cbad6..b7d7ccdd3be 100644 --- a/src/game/ObjectGuid.cpp +++ b/src/game/ObjectGuid.cpp @@ -25,6 +25,7 @@ #include "ObjectMgr.h" #include +#include char const* ObjectGuid::GetTypeName(HighGuid high) { @@ -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()) @@ -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() << ")";