Quantcast WoWInterface - View Single Post - LibResInfo - resurrection info without comms
View Single Post
10-16-12, 05:47 AM   #43
A Murloc Raider
Join Date: Jul 2012
Posts: 5
I reported this originally as part of a ticket to Grid:

It was marked fixed for Grid, but the bug is still present. I thought it would be a good idea to report it here, as the bug is in this library.

Grid-r1536\Libs\LibResInfo-1.0\LibResInfo-1.0-4.lua:185: attempt to compare nil with number
Grid-r1536\Libs\LibResInfo-1.0\LibResInfo-1.0-4.lua:185: in function "UnitHasIncomingRes"
Grid-r1536\Statuses\GridStatusResurrect.lua:117: in function "?"
libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:147: in function <libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[6]":4: in function <string>:"safecall Dispatcher[6]":4
<in C code>
<string>:"safecall Dispatcher[6]":13: in function "?"
libs\CallbackHandler-1.0\CallbackHandler-1.0-6.lua:92: in function "Fire"
Grid-r1536\Libs\LibResInfo-1.0\LibResInfo-1.0-4.lua:426: in function "?"
Grid-r1536\Libs\LibResInfo-1.0\LibResInfo-1.0-4.lua:127: in function <Grid\Libs\LibResInfo-1.0\LibResInfo-1.0.lua:126>

The lua error can be removed with the following, although there is probably a better fix.

$ diff LibResInfo-1.0.lua.old LibResInfo-1.0.lua
< if not firstEnd or endTime < firstEnd then
> if endTime and (not firstEnd or endTime < firstEnd) then

I do not know why sometimes "local endTime = castEnd[casterGUID]" is nil.
  Reply With Quote