1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-17 15:58:26 +01:00

Added check before hypothetically indexing nil

This commit is contained in:
LeMagnesium 2015-07-29 10:38:27 +02:00
parent 6142ca84c4
commit 3c7d685fb4

View File

@ -746,11 +746,13 @@ function factions.load()
for id,object in pairs(factions.data.objects) do
for name,value in pairs(factions.data.objects[id].factions) do
if value then
if factions.dynamic_data.membertable[name] then -- One of the indexes above is nil. Which one? No idea. //MFF(Mg|07/29/15)
factions.dynamic_data.membertable[name][id] = true
end
end
end
end
end
else
local file,error = io.open(factions_worldid .. "/" .. "factions.conf","w")