set a default value for guilds_by_id middleman variable so that it has the right scope (?)

This commit is contained in:
Adrian Edwards 2020-10-18 16:32:14 -07:00
parent 52d3d39241
commit 866145e61e

View file

@ -55,6 +55,7 @@ class TextSettingsWindow(SettingsWindow):
self.guild_lookup.append(guild)
g_model.append([guild_name, True])
guilds_by_id = "0"
if self.guild == "0":
c_model.append([guild_name, False])
guilds_by_id = guild_id