Originally Posted by Phanx
Code:
local val = EnumerateFrames()
while val do
if register(val) then
val = EnumerateFrames(val)
end
end
|
If
register(val) ever returns false or nil, this will send the game into an infinite loop.
Try this with Phanx's other modification to
register():
Code:
local val = EnumerateFrames()
while val and register(val) do
val = EnumerateFrames(val)
end
The only problem with this is when it runs into the error, it'll stop hooking. There isn't any other way around this.