mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10383] Store guid instaed pointer for first user of GAMEOBJECT_TYPE_SUMMONING_RITUAL
This is more safe way in pointer store comparison with. LAso Some related code cleanups.
This commit is contained in:
parent
b672913633
commit
0649b508e4
5 changed files with 81 additions and 71 deletions
|
|
@ -3731,9 +3731,9 @@ void Spell::EffectOpenLock(SpellEffectIndex eff_idx)
|
|||
if (gameObjTarget)
|
||||
{
|
||||
// Allow one skill-up until respawned
|
||||
if (!gameObjTarget->IsInSkillupList(player->GetGUIDLow()) &&
|
||||
if (!gameObjTarget->IsInSkillupList(player) &&
|
||||
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue))
|
||||
gameObjTarget->AddToSkillupList(player->GetGUIDLow());
|
||||
gameObjTarget->AddToSkillupList(player);
|
||||
}
|
||||
else if (itemTarget)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue