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
|
||||
-- Now, try soft dependencies.
|
||||
for depend in pairs(mod.optional_depends) do
|
||||
-- Mod may not exist
|
||||
if mod_info[depend] then
|
||||
load(mod_info[depend])
|
||||
end
|
||||
end
|
||||
mod.status = "loaded"
|
||||
table.insert(mod_load_order, mod)
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user