hooking 'AddQuestWatch'
Im trying to hook the function AddQuestWatch, but when I put
oldAddWatch = AddQuestWatch
AddQuestWatch = NewAddQuestWatch
into an OnLoad function, the system locks up, and after about 5 minutes I get the error:
Interface\FrameXML\UIPanelTemplates.lua:167:stack overflow
and I find that the 'NewAddQuestWatch' function has run about 15,000 times, if I hook the functions manually, in game, everything works fine. anyone have any ideas on why this is happening, and/or how to get around it?
|