mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
Added check before hypothetically indexing nil
This commit is contained in:
parent
6142ca84c4
commit
3c7d685fb4
@ -746,7 +746,9 @@ 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
|
||||
factions.dynamic_data.membertable[name][id] = true
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user