Core/Objects: Added missed change to 9ec22fffa0

This commit is contained in:
Shauren
2013-06-15 14:45:28 +02:00
parent b38025d96e
commit a8a5239aad
2 changed files with 3 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ class Object
uint32 GetEntry() const { return GetUInt32Value(OBJECT_FIELD_ENTRY); }
void SetEntry(uint32 entry) { SetUInt32Value(OBJECT_FIELD_ENTRY, entry); }
void SetObjectScale(float scale) { SetFloatValue(OBJECT_FIELD_SCALE_X, scale); }
virtual void SetObjectScale(float scale) { SetFloatValue(OBJECT_FIELD_SCALE_X, scale); }
TypeID GetTypeId() const { return m_objectTypeId; }
bool isType(uint16 mask) const { return (mask & m_objectType); }

View File

@@ -2088,6 +2088,6 @@ void Pet::SetDisplayId(uint32 modelId)
if (Unit* owner = GetOwner())
if (Player* player = owner->ToPlayer())
if (owner->ToPlayer()->GetGroup())
owner->ToPlayer()->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_MODEL_ID);
if (player->GetGroup())
player->SetGroupUpdateFlag(GROUP_UPDATE_FLAG_PET_MODEL_ID);
}