diff options
author | megamage <none@none> | 2009-05-17 09:43:57 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-17 09:43:57 -0500 |
commit | d0a50c9d55092e57ee0258149ceeb05029001946 (patch) | |
tree | 031d5fb85223daef010ed4e123d85df820826c2f /src | |
parent | f4efa0f1df25aab4ed233c7fd3d536ef46d483ed (diff) |
*Fix the sql error when saving pet auras.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Pet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Pet.cpp b/src/game/Pet.cpp index 32acbf29381..722db3ccb78 100644 --- a/src/game/Pet.cpp +++ b/src/game/Pet.cpp @@ -1220,10 +1220,10 @@ void Pet::_SaveAuras() } CharacterDatabase.PExecute("INSERT INTO pet_aura (guid,caster_guid,spell,effect_mask,stackcount,amount0, amount1, amount2,maxduration,remaintime,remaincharges) " - "VALUES ('%u', '" I64FMTD "', '%u', '%u', '%u', '%u', '%u', '%d', '%d', '%d', '%d')", - m_charmInfo->GetPetNumber(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(), - (uint32)itr->second->GetStackAmount(), amounts[0], amounts[1], amounts[2] - ,int(itr->second->GetAuraMaxDuration()),int(itr->second->GetAuraDuration()),int(itr->second->GetAuraCharges())); + "VALUES ('%u', '" I64FMTD "', '%u', '%u', '%d', '%d', '%d', '%d', '%d', '%d', '%u')", + m_charmInfo->GetPetNumber(), itr->second->GetCasterGUID(), itr->second->GetId(), (uint32)itr->second->GetEffectMask(), + (int32)itr->second->GetStackAmount(), amounts[0], amounts[1], amounts[2] + ,itr->second->GetAuraMaxDuration(), itr->second->GetAuraDuration(), (uint32)itr->second->GetAuraCharges()); } } |