View Single Post
07-27-16, 05:50 AM   #8
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Originally Posted by Lombra View Post
Didn't realise hooksecurefunc simply replaced the hooked function, but that was easily confirmed.

Same, I only found out about that when I tried to see with hooksecurefunc whether RemoveExtraSpaces/RunScript was changed, or pointing to something else
Thought I was going crazy when the reference kept changing after I hooked it... every day you learn something new ><

http://wow.gamepedia.com/API_hooksecurefunc
Keep in mind that it actually replaces the original function with a new one (the function reference changes)