Attempted fix

This commit is contained in:
Anthony Recascino 2016-07-30 00:43:43 -04:00
parent 5a7d08e75f
commit 670787bee0

View File

@ -324,6 +324,9 @@ function factions.member_remove(name,object)
factions.data.objects[id].factions[name] ~= nil then
factions.data.objects[id].factions[name] = nil
factions.dynamic_data.membertable[name][id] = nil
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
factions.delete_faction(name)
end
factions.save()
return true
end
@ -334,10 +337,6 @@ function factions.member_remove(name,object)
factions.save()
return true
end
if factions.data.objects[id].factions[name].owner == object:get_player_name() then
factions.delete_faction(name)
end
return false
end