refactor(Core): Make ObjectGuid const (#23170)
* cherry-pick commit (a7883380ce)
Co-Authored-By: Lucas Nascimento <keader.android@gmail.com>
This commit is contained in:
parent
9c49349e1e
commit
8e2e30328f
51 changed files with 119 additions and 119 deletions
|
|
@ -241,7 +241,7 @@ struct npc_stolen_soul : public ScriptedAI
|
|||
});
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*id*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*id*/) override
|
||||
{
|
||||
_targetGuid = guid;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ struct boss_murmur : public BossAI
|
|||
return true;
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 index) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 index) override
|
||||
{
|
||||
if (index == GUID_MURMUR_NPCS)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -670,7 +670,7 @@ public:
|
|||
}
|
||||
|
||||
// Used for getting involved player guid. Parameter id is used for defining if is a large(Monument) or small(Relic) node
|
||||
void SetGUID(ObjectGuid guid, int32 id) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 id) override
|
||||
{
|
||||
me->SetCanFly(true);
|
||||
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ public:
|
|||
uint32 HealTimer;
|
||||
uint32 FrostShockTimer;
|
||||
|
||||
void SetGUID(ObjectGuid guid, int32 /*questId*/) override
|
||||
void SetGUID(ObjectGuid const& guid, int32 /*questId*/) override
|
||||
{
|
||||
me->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
Start(true, false, guid);
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ public:
|
|||
npc_escortAI::MoveInLineOfSight(who);
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid playerGUID, int32 type) override
|
||||
void SetGUID(ObjectGuid const& playerGUID, int32 type) override
|
||||
{
|
||||
if (type == DATA_START_ENCOUNTER)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue