diff options
author | maximius <none@none> | 2009-09-09 23:39:15 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-09 23:39:15 -0700 |
commit | 790a04bb299c3e3140b5d77f988bb86a49e60d0f (patch) | |
tree | 151b387bd51ae74dd825a1dc163a949d6c0f5ce9 | |
parent | ce0a56b25523f5e8a2db21a6361c40d03667cc29 (diff) |
*Replace uint32 with int32, should fix "Pet::Update(): pets aren't regenerating focus even though m_regenTimer is less than diff"..
--HG--
branch : trunk
-rw-r--r-- | src/game/Pet.cpp | 2 | ||||
-rw-r--r-- | src/game/Pet.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index e6dcf0ed19c..17cafed6df0 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -480,7 +480,7 @@ void Pet::setDeathState(DeathState s) // overwrite virtual } } -void Pet::Update(uint32 diff) +void Pet::Update(int32 diff) { if(m_removed) // pet already removed, just wait in remove queue, no updates return; diff --git a/src/game/Pet.h b/src/game/Pet.h index 6cffc7cd44a..9a506b71026 100644 --- a/src/game/Pet.h +++ b/src/game/Pet.h @@ -148,7 +148,7 @@ class Pet : public Guardian static void DeleteFromDB(uint32 guidlow); void setDeathState(DeathState s); // overwrite virtual Creature::setDeathState and Unit::setDeathState - void Update(uint32 diff); // overwrite virtual Creature::Update and Unit::Update + void Update(int32 diff); // overwrite virtual Creature::Update and Unit::Update uint8 GetPetAutoSpellSize() const { return m_autospells.size(); } uint32 GetPetAutoSpellOnPos(uint8 pos) const |