Skip to content

Commit

Permalink
I hate code
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Nov 6, 2024
1 parent 7a35744 commit 3ecb05c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/clans/clan_tgui.dm
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,14 @@ GLOBAL_DATUM_INIT(yautja_clan_data, /datum/yautja_panel, new(init_global = TRUE)

/datum/yautja_panel/proc/populate_clan_data()
clan_name_to_index = list("Clanless" = 0)
clan_index_to_id = list("0" = 0)
clan_index_to_id = list("0" = null)
var/list/clan_names = list("Clanless")
var/index = 1
var/list/data = list()
data["clans"] = list()

data["clans"] += list(populate_clan("Clanless", null))
data["clans"] += list(populate_clan("Clanless", 0))
var/list/datum/view_record/clan_view/clan_list = DB_VIEW(/datum/view_record/clan_view/)
for(var/datum/view_record/clan_view/viewed_clan in clan_list)
data["clans"] += list(populate_clan("[viewed_clan.name]", viewed_clan.clan_id))
Expand Down

0 comments on commit 3ecb05c

Please sign in to comment.