mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53:46 +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,8 +307,11 @@ 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
|
||||||
|
-- Mod may not exist
|
||||||
|
if mod_info[depend] then
|
||||||
load(mod_info[depend])
|
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)
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user