From 2d89de59277582fa909f57135a03b98589e7ae5d Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Mon, 22 Oct 2018 18:58:41 -0500 Subject: [PATCH] Disband bug fix. Disband function was clearing out a shared player list. --- factions.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/factions.lua b/factions.lua index 97a35c9..cbb226e 100644 --- a/factions.lua +++ b/factions.lua @@ -10,9 +10,6 @@ factions.factions = {} factions.parcels = {} factions.players = {} - -factions.factions = {} - --------------------- --! @brief returns whether a faction can be created or not (allows for implementation of blacklists and the like) --! @param name String containing the faction's name @@ -98,7 +95,7 @@ function factions.Faction:new(faction) --! @brief table of parcels/factions that are under attack attacked_parcels = {}, --! @brief whether faction is closed or open (boolean) - join_free = false, + join_free = true, --! @brief gives certain privileges is_admin = false, --! @brief last time anyone logged on @@ -340,7 +337,7 @@ function factions.Faction.disband(self, reason) end end end - for k, _ in pairs(factions.players) do -- remove players affiliation + for k, _ in pairs(self.players) do -- remove players affiliation factions.players[k] = nil end for k, v in pairs(self.land) do -- remove parcel claims