diff options
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r-- | src/game/Unit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h index 88db4527727..a827f1681c8 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -1852,7 +1852,7 @@ class Unit : public WorldObject static Creature* GetCreature(WorldObject& object, uint64 guid); MotionMaster* GetMotionMaster(){ return &i_motionMaster; } - + bool IsStopped() const { return !(hasUnitState(UNIT_STAT_MOVING)); } void StopMoving(); @@ -1958,7 +1958,7 @@ class Unit : public WorldObject virtual bool isBeingLoaded() const { return false;} Pet* ToPet(){ if(isPet()) return reinterpret_cast<Pet*>(this); else return NULL; } - Totem* ToTotem(){ if(isTotem()) return reinterpret_cast<Totem*>(this); else return NULL; } + Totem* ToTotem(){ if(isTotem()) return reinterpret_cast<Totem*>(this); else return NULL; } TempSummon* ToTempSummon() { if(isSummon()) return reinterpret_cast<TempSummon*>(this); else return NULL; } const TempSummon* ToTempSummon() const { if(isSummon()) return reinterpret_cast<const TempSummon*>(this); else return NULL; } |