Quantcast
GetRuneCooldown will crash your client - WoWInterface
 
Thread Tools Display Modes
05-20-16, 11:16 AM   #1
galvin
A Frostmaul Preserver
Join Date: Nov 2006
Posts: 263
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
 
05-26-16, 11:02 PM   #2
galvin
A Frostmaul Preserver
Join Date: Nov 2006
Posts: 263
Fixed in last beta update

Returns nil if you're not a deathknight.
 
05-27-16, 05:59 AM   #3
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,704
I wonder if they fixed this issue as well:
https://github.com/haste/oUF/pull/251/files
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » GetRuneCooldown will crash your client

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off