*Replace uint32 with int32, should fix "Pet::Update(): pets aren't regenerating focus even though m_regenTimer is less than diff"..
--HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user