mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 10:43:43 +01:00
Fix get_mod_load_order crash if mods with unfulfilled optional dependencies are enabled
This commit is contained in:
parent
77ac8ba640
commit
259f28c886
@ -307,7 +307,10 @@ function get_mod_load_order()
|
|||||||
end
|
end
|
||||||
-- Now, try soft dependencies.
|
-- Now, try soft dependencies.
|
||||||
for depend in pairs(mod.optional_depends) do
|
for depend in pairs(mod.optional_depends) do
|
||||||
load(mod_info[depend])
|
-- Mod may not exist
|
||||||
|
if mod_info[depend] then
|
||||||
|
load(mod_info[depend])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
mod.status = "loaded"
|
mod.status = "loaded"
|
||||||
table.insert(mod_load_order, mod)
|
table.insert(mod_load_order, mod)
|
||||||
|
Loading…
Reference in New Issue
Block a user