Skip to content

Commit

Permalink
Fix use of default values in state method AddAuraToGUID().
Browse files Browse the repository at this point in the history
If start or ending were nil parameters to the method, then the arithmetic
used within the method to determine the aura's duration would fail due to
arithmetic on nil values.
  • Loading branch information
johnnylam88 committed Apr 6, 2015
1 parent cdb2376 commit 53be3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Aura.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ statePrototype.AddAuraToGUID = function(state, guid, auraId, casterGUID, filter,
aura.filter = filter
aura.start = start or 0
aura.ending = ending or INFINITY
aura.duration = ending - start
aura.duration = aura.ending - aura.start
aura.gain = aura.start
aura.stacks = 1
aura.debuffType = debuffType
Expand Down

0 comments on commit 53be3b8

Please sign in to comment.