Problem with guild IDs after leaving a guild -> ID = ID+MAX_GUILDS
Hey there,
as I tested something with my addon FCOGuildInfo I've joined and left a guild to see what the events for joining/leaving a guild do.
After joining a guild:
The function GetNumGuilds() gets me the correct number of my new guilds: 5
The function GetGuildName(guildId) gets me the correct name of all my 5 guilds (IDs 1 to 5).
Do not logout in between here!
After leaving the joined guild later on:
The function GetNumGuilds() gets me the correct number of my guilds left: 4
The function GetGuildName(guildId) gets me an empty string?
I've tested IDs 1 to 5 -> Empty string
After that I just tested IDs > 5 and all of sudden:
ID6 = ID1 (Guild 1) -> Name was found correctly
ID7 = ID2 (Guild 2) -> Name was found correctly
ID8 = ID3 (Guild 3) -> Name was found correctly
ID9 = ID4 (Guild 4) -> Name was found correctly
I don't know if this is normal but for me it looks like a bug?
Maybe they copy the guild ids to ID+MAX_GUILDS (or something like this) as you remove a guild, so they can reorg something in the background.
But it seems as if it wa snot moved back to IDs 1 to 4 properly afterwards.
Anyone here encountered this too?
Edit:
The function GetGuildId() always will return 6 at this moment, even if I change the active guild in the roster...
Edit2:
After joining the same guild again the things get even more weird:
Guild 1 was moved to guildID 5
Guild 2 was moved to guildID 6
Guild 3 was moved to guildID 7
Guild 4 was moved to guildID 8
Guild 5 was moved to guildID 9
So everything was moved from starting ID 6 to starting ID 5 (-1)???
Last edited by Baertram : 01/18/16 at 05:18 AM.
|