Skip to content

Commit

Permalink
[10337] Correctly handle auras with infinite duration in code added b…
Browse files Browse the repository at this point in the history
…y [10335]...
  • Loading branch information
Lynx3d committed Aug 9, 2010
1 parent a2b4f6d commit 73500d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/GridNotifiersImpl.h
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10336"
#define REVISION_NR "10337"
#endif // __REVISION_NR_H__

0 comments on commit 73500d2

Please sign in to comment.