Core/Objects: Add const to Object::DestroyForPlayer and Object::SendOutOfRangeForPlayer

This commit is contained in:
Shauren
2025-12-26 22:50:38 +01:00
parent df6de8c4ee
commit 3b722eb93e
6 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ ByteBuffer& Object::PrepareValuesUpdateBuffer(UpdateData* data) const
return buffer;
}
void Object::DestroyForPlayer(Player* target) const
void Object::DestroyForPlayer(Player const* target) const
{
ASSERT(target);
@@ -271,7 +271,7 @@ void Object::DestroyForPlayer(Player* target) const
target->SendDirectMessage(&packet);
}
void Object::SendOutOfRangeForPlayer(Player* target) const
void Object::SendOutOfRangeForPlayer(Player const* target) const
{
ASSERT(target);
+2 -2
View File
@@ -228,8 +228,8 @@ class TC_GAME_API Object
void BuildOutOfRangeUpdateBlock(UpdateData* data) const;
ByteBuffer& PrepareValuesUpdateBuffer(UpdateData* data) const;
virtual void DestroyForPlayer(Player* target) const;
void SendOutOfRangeForPlayer(Player* target) const;
virtual void DestroyForPlayer(Player const* target) const;
void SendOutOfRangeForPlayer(Player const* target) const;
virtual void ClearUpdateMask(bool remove);
+1 -1
View File
@@ -3706,7 +3706,7 @@ void Player::ValuesUpdateForPlayerWithMaskSender::operator()(Player const* playe
player->SendDirectMessage(&packet);
}
void Player::DestroyForPlayer(Player* target) const
void Player::DestroyForPlayer(Player const* target) const
{
Unit::DestroyForPlayer(target);
+1 -1
View File
@@ -2233,7 +2233,7 @@ class TC_GAME_API Player final : public Unit, public GridObject<Player>
void operator()(Player const* player) const;
};
void DestroyForPlayer(Player* target) const override;
void DestroyForPlayer(Player const* target) const override;
// notifiers
void SendAttackSwingCancelAttack() const;
+1 -1
View File
@@ -14128,7 +14128,7 @@ UF::UpdateFieldFlag Unit::GetUpdateFieldFlagsFor(Player const* target) const
return flags;
}
void Unit::DestroyForPlayer(Player* target) const
void Unit::DestroyForPlayer(Player const* target) const
{
if (Battleground* bg = target->GetBattleground())
{
+1 -1
View File
@@ -1878,7 +1878,7 @@ class TC_GAME_API Unit : public WorldObject
UF::UpdateFieldFlag GetUpdateFieldFlagsFor(Player const* target) const override;
void DestroyForPlayer(Player* target) const override;
void DestroyForPlayer(Player const* target) const override;
void ClearUpdateMask(bool remove) override;
void _UpdateSpells(uint32 time);