Quick Fix for #1 "No Guild Stores"

Hi,

I just had the Problem again and was able to try a quick fix by introduceing an new variable "MAX_GUILD_INDEX" wich is set in the "PopulateGuildList" function and checking against this variable instead of "MAX_GUILD_ID" in the conditional loops.

After this change I was able to search my Guildstores although they had IDs from 5 to 9.

Its a bit of quick and dirty, but maybe you can use this until you have something more elegant.