Fixed selecting of guild name in Rule Edit

willneedit [02-14-20 - 18:25]
Fixed selecting of guild name in Rule Edit
Filename
UI/RuleEdit.lua
diff --git a/UI/RuleEdit.lua b/UI/RuleEdit.lua
index 2de6925..acfcaaf 100644
--- a/UI/RuleEdit.lua
+++ b/UI/RuleEdit.lua
@@ -97,7 +97,8 @@ function RE:GetControls()

 	local guilds = { }
 	for i = 1, GetNumGuilds(), 1 do
-		local gn = GetGuildName(i)
+		local gid = GetGuildId(i)
+		local gn = GetGuildName(gid)
 		if gn ~= "" then
 			guilds[#guilds + 1] = { gn, i }
 		end