View Single Post
01-01-22, 10:44 PM   #8
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
There might be some weird delay with UninviteUnit on nonexistent members, causing something to happen after the loop. Normally, unit functions on nonexistent units are silently ignored.

In any of the versions, find this:

Code:
if not

replace with this:

Code:
if UnitExists(u..i) and not

I also thought about an edge case where the loop may miss someone because unit IDs in a group could get shuffled around.

In any of the versions, find this:

Code:
i=1,n

replace with this:

Code:
i=n,1,-1

Last edited by Kanegasi : 01-01-22 at 10:48 PM.
  Reply With Quote