From 790a04bb299c3e3140b5d77f988bb86a49e60d0f Mon Sep 17 00:00:00 2001 From: maximius Date: Wed, 9 Sep 2009 23:39:15 -0700 Subject: [PATCH] *Replace uint32 with int32, should fix "Pet::Update(): pets aren't regenerating focus even though m_regenTimer is less than diff".. --HG-- branch : trunk --- src/game/Pet.cpp | 2 +- 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 e6dcf0ed19..17cafed6df 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 6cffc7cd44..9a506b7102 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