aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-02 21:49:21 -0500
committermegamage <none@none>2009-05-02 21:49:21 -0500
commit272697ede188cb98d75ae32b92f1d6abfb8bb02c (patch)
treea3f0e8479a87f8b20e85eec9cf41aa9be5238459
parenteeeae2e3491c719790bc7f58b19a4d7c6ceafb61 (diff)
*Fix the db error when saving pet auras.
--HG-- branch : trunk
-rw-r--r--src/game/Pet.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp
index 9f861a91b89..8985d648cff 100644
--- a/src/game/Pet.cpp
+++ b/src/game/Pet.cpp
@@ -1181,13 +1181,13 @@ void Pet::_SaveAuras()
|| itr->second->IsAreaAura())
continue;
- uint32 amounts[MAX_SPELL_EFFECTS];
- for (uint8 i=0;i<MAX_SPELL_EFFECTS;++i)
+ int32 amounts[MAX_SPELL_EFFECTS];
+ for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
- if (AuraEffect * partAura = itr->second->GetPartAura(i))
- amounts[i]=partAura->GetAmount();
+ if (AuraEffect *partAura = itr->second->GetPartAura(i))
+ amounts[i] = partAura->GetAmount();
else
- amounts[i]=0;
+ amounts[i] = 0;
}
CharacterDatabase.PExecute("INSERT INTO pet_aura (guid,caster_guid,spell,effect_mask,stackcount,amount0, amount1, amount2,maxduration,remaintime,remaincharges) "