*Fix getLevel() being parsed as a char in ostringstream use

--HG--
branch : trunk
This commit is contained in:
maximius
2009-11-01 20:50:31 -08:00
parent 5ed3201ad6
commit c3ba7d2208
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ void Pet::SavePetToDB(PetSaveMode mode)
<< GetEntry() << ", " << GetEntry() << ", "
<< owner << ", " << owner << ", "
<< GetNativeDisplayId() << ", " << GetNativeDisplayId() << ", "
<< getLevel() << ", " << uint32(getLevel()) << ", "
<< GetUInt32Value(UNIT_FIELD_PETEXPERIENCE) << ", " << GetUInt32Value(UNIT_FIELD_PETEXPERIENCE) << ", "
<< uint32(GetReactState()) << ", " << uint32(GetReactState()) << ", "
<< uint32(mode) << ", '" << uint32(mode) << ", '"
+4 -4
View File
@@ -16330,10 +16330,10 @@ void Player::SaveToDB()
<< GetGUIDLow() << ", " << GetGUIDLow() << ", "
<< GetSession()->GetAccountId() << ", '" << GetSession()->GetAccountId() << ", '"
<< sql_name << "', " << sql_name << "', "
<< (uint32)getRace() << ", " << uint32(getRace()) << ", "
<< (uint32)getClass() << ", " << uint32(getClass()) << ", "
<< (uint32)getGender() << ", " << uint32(getGender()) << ", "
<< getLevel() << ", " << uint32(getLevel()) << ", "
<< GetUInt32Value(PLAYER_XP) << ", " << GetUInt32Value(PLAYER_XP) << ", "
<< GetMoney() << ", " << GetMoney() << ", "
<< GetUInt32Value(PLAYER_BYTES) << ", " << GetUInt32Value(PLAYER_BYTES) << ", "
+1 -1
View File
@@ -1167,7 +1167,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
bool isTotem() const { return m_unitTypeMask & UNIT_MASK_TOTEM; } bool isTotem() const { return m_unitTypeMask & UNIT_MASK_TOTEM; }
bool IsVehicle() const { return m_unitTypeMask & UNIT_MASK_VEHICLE; } bool IsVehicle() const { return m_unitTypeMask & UNIT_MASK_VEHICLE; }
uint8 getLevel() const { return GetUInt32Value(UNIT_FIELD_LEVEL); } uint8 getLevel() const { return uint8(GetUInt32Value(UNIT_FIELD_LEVEL)); }
virtual uint8 getLevelForTarget(Unit const* /*target*/) const { return getLevel(); } virtual uint8 getLevelForTarget(Unit const* /*target*/) const { return getLevel(); }
void SetLevel(uint8 lvl); void SetLevel(uint8 lvl);
uint8 getRace() const { return GetByteValue(UNIT_FIELD_BYTES_0, 0); } uint8 getRace() const { return GetByteValue(UNIT_FIELD_BYTES_0, 0); }