WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   GetRuneCooldown will crash your client (https://www.wowinterface.com/forums/showthread.php?t=53468)

galvin 05-20-16 11:16 AM

GetRuneCooldown will crash your client
 
Posted this on the official forums a while back.

If you're not a death knight and you call this function it'll crash the client.

Work around I use in my mod
Code:

local GetRuneCooldown1 = GetRuneCooldown

local function GetRuneCooldown(RuneIndex)
  if Main.PlayerClass ~= 'DEATHKNIGHT' then
    return 0, 0, true
  else
    return GetRuneCooldown1(RuneIndex)
  end
end


galvin 05-26-16 11:02 PM

Fixed in last beta update

Returns nil if you're not a deathknight.

p3lim 05-27-16 05:59 AM

I wonder if they fixed this issue as well:
https://github.com/haste/oUF/pull/251/files


All times are GMT -6. The time now is 03:54 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI