diff --git a/src/game/ObjectGuid.cpp b/src/game/ObjectGuid.cpp index 1c543bd0c..b8a41f0b1 100644 --- a/src/game/ObjectGuid.cpp +++ b/src/game/ObjectGuid.cpp @@ -19,6 +19,7 @@ #include "ObjectGuid.h" #include "World.h" +#include "ObjectMgr.h" #include @@ -44,7 +45,16 @@ char const* ObjectGuid::GetTypeName(HighGuid high) std::string ObjectGuid::GetString() const { std::ostringstream str; - str << GetTypeName() << " ("; + str << GetTypeName(); + + if (IsPlayer()) + { + std::string name; + if (sObjectMgr.GetPlayerNameByGUID(m_guid, name)) + str << " " << name; + } + + str << " ("; if (HasEntry()) str << "Entry: " << GetEntry() << " "; str << "Guid: " << GetCounter() << ")"; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 2b8113512..817e09de3 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9918" + #define REVISION_NR "9919" #endif // __REVISION_NR_H__