From c252ca5bc4f93cf984b3355deb4eb73a931b9dcc Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sat, 21 Aug 2010 16:37:10 +0200 Subject: [PATCH] [10394] Remove redundant use of this-> in recent implemented script calls Thanks porteyoplait for pointing it out /bonk author Signed-off-by: NoFantasy --- src/game/Player.cpp | 2 +- src/game/Unit.cpp | 6 +++--- src/shared/revision_nr.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 261394b34..adc3dbf9c 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -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); } diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 42f7375f7..30d1e752f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c96b1d9f1..6a6c1b917 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "10393" + #define REVISION_NR "10394" #endif // __REVISION_NR_H__