[10394] Remove redundant use of this-> in recent implemented script calls

Thanks porteyoplait for pointing it out /bonk author

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-08-21 16:37:10 +02:00
parent 3332ed72a6
commit c252ca5bc4
3 changed files with 5 additions and 5 deletions

View file

@ -1514,7 +1514,7 @@ void Player::setDeathState(DeathState s)
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH, 1);
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, 1);
if (InstanceData* mapInstance = this->GetInstanceData())
if (InstanceData* mapInstance = GetInstanceData())
mapInstance->OnPlayerDeath(this);
}

View file

@ -7480,7 +7480,7 @@ void Unit::SetInCombatState(bool PvP, Unit* enemy)
if (((Creature*)this)->AI())
((Creature*)this)->AI()->EnterCombat(enemy);
if (InstanceData* mapInstance = this->GetInstanceData())
if (InstanceData* mapInstance = GetInstanceData())
mapInstance->OnCreatureEnterCombat((Creature*)this);
}
}
@ -8342,7 +8342,7 @@ void Unit::TauntFadeOut(Unit *taunter)
if(((Creature*)this)->AI())
((Creature*)this)->AI()->EnterEvadeMode();
if (InstanceData* mapInstance = this->GetInstanceData())
if (InstanceData* mapInstance = GetInstanceData())
mapInstance->OnCreatureEvade((Creature*)this);
return;
@ -8440,7 +8440,7 @@ bool Unit::SelectHostileTarget()
// enter in evade mode in other case
((Creature*)this)->AI()->EnterEvadeMode();
if (InstanceData* mapInstance = this->GetInstanceData())
if (InstanceData* mapInstance = GetInstanceData())
mapInstance->OnCreatureEvade((Creature*)this);
return false;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10393"
#define REVISION_NR "10394"
#endif // __REVISION_NR_H__