[10337] Correctly handle auras with infinite duration in code added by [10335]...

This commit is contained in:
Lynx3d 2010-08-10 00:36:09 +02:00
parent 085811fc06
commit 0aa9e5a133
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ inline void MaNGOS::DynamicObjectUpdater::VisitHelper(Unit* target)
if (Aura* aura = holder->GetAuraByEffectIndex(eff_index))
{
// already exists, refresh duration
if (aura->GetAuraDuration() < i_dynobject.GetDuration())
if (aura->GetAuraDuration() >=0 && uint32(aura->GetAuraDuration()) < i_dynobject.GetDuration())
{
aura->SetAuraDuration(i_dynobject.GetDuration());
holder->SendAuraUpdate(false);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10336"
#define REVISION_NR "10337"
#endif // __REVISION_NR_H__