From b4c62b9646b2b8cc08921679d72e80f1da9e90e2 Mon Sep 17 00:00:00 2001 From: Rat Date: Sun, 17 Oct 2010 22:00:40 +0200 Subject: Typo cleanup! :/ --HG-- branch : trunk --- src/server/game/Entities/Unit/Unit.cpp | 2 +- src/server/game/Entities/Unit/Unit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 1179c0e474e..5b155a2879e 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -4408,7 +4408,7 @@ uint32 Unit::GetAuraCount(uint32 spellId) const uint32 count = 0; for (AuraApplicationMap::const_iterator itr = m_appliedAuras.lower_bound(spellId); itr != m_appliedAuras.upper_bound(spellId); ++itr) { - if (itr->second->GetBase()->GetStackAmount()) + if (!itr->second->GetBase()->GetStackAmount()) count++; else count += (uint32)itr->second->GetBase()->GetStackAmount(); diff --git a/src/server/game/Entities/Unit/Unit.h b/src/server/game/Entities/Unit/Unit.h index 17a1684d2f5..e5ef44f0a73 100755 --- a/src/server/game/Entities/Unit/Unit.h +++ b/src/server/game/Entities/Unit/Unit.h @@ -1454,7 +1454,7 @@ class Unit : public WorldObject void JumpTo(float speedXY, float speedZ, bool forward = true); void JumpTo(WorldObject *obj, float speedZ); - void SetFacing(float ori, WorldObject* obj); + void SetFacing(float ori, WorldObject* obj = NULL); void SendMonsterStop(bool on_death = false); void SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint32 Time, Player* player = NULL); void SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint32 MoveFlags, uint32 time, float speedZ, Player *player = NULL); -- cgit v1.2.3