[10542] Fixed ObjectGuid::IsUnit

Also some better string format for pet guid case.

Thanks to zergtmn for find problem.
This commit is contained in:
VladimirMangos 2010-09-26 18:32:33 +04:00
parent 3bc4f053cc
commit 4598224659
3 changed files with 4 additions and 3 deletions

View file

@ -56,7 +56,7 @@ std::string ObjectGuid::GetString() const
str << " (";
if (HasEntry())
str << "Entry: " << GetEntry() << " ";
str << (IsPet() ? "Petnumber: " : "Entry: ") << GetEntry() << " ";
str << "Guid: " << GetCounter() << ")";
return str.str();
}