There is a huge bug IMO in the blizzard code.
ClubFinder.lua:559
Lua Code:
UIDropDownMenu_AddButton(info, level);
In this code "level" is a GLOBAL!
This means that it could be interacting with other code that sets the global "level" variable!
So if you are lucky that level variable will be nil, and when you call into AddButton, it will get set to 1 by this code
Lua Code:
if ( not level ) then
level = 1;
end
So, that is all well and good - but it is breaking for you. So let check out your code to see if you might be using the same variable.
https://sourcegraph.com/github.com/k...yer.lua#L121:5
You also appear to be writing to the global "level" variable
Lua Code:
level = UnitLevel('player');
You should try to avoid writing to global variables if at all possible. Cheers!