diff --git a/factions.lua b/factions.lua index 37affa4..7e982e5 100644 --- a/factions.lua +++ b/factions.lua @@ -481,7 +481,8 @@ end function factions.get_player_faction(playername) local data = factions.players.get(playername) if data then - local faction = factions.factions.get(data.faction) + local facname = data.faction + local faction = factions.factions.get(facname) return faction, facname end return nil