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:
parent
6142ca84c4
commit
3c7d685fb4
@ -746,11 +746,13 @@ function factions.load()
|
|||||||
for id,object in pairs(factions.data.objects) do
|
for id,object in pairs(factions.data.objects) do
|
||||||
for name,value in pairs(factions.data.objects[id].factions) do
|
for name,value in pairs(factions.data.objects[id].factions) do
|
||||||
if value then
|
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
|
factions.dynamic_data.membertable[name][id] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
local file,error = io.open(factions_worldid .. "/" .. "factions.conf","w")
|
local file,error = io.open(factions_worldid .. "/" .. "factions.conf","w")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user