Fixed the emptiness check for the addon's meta
This commit is contained in:
parent
00df26e116
commit
4ca02ba8a4
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ void server::load_config()
|
|||
for(const std::string& addon_dir : dirs) {
|
||||
in = filesystem::istream_file(filesystem::normalize_path("data/" + addon_dir + "/addon.cfg"));
|
||||
read(meta, *in);
|
||||
if(meta) {
|
||||
if(!meta.empty()) {
|
||||
addons_.emplace(meta["name"].str(), meta);
|
||||
} else {
|
||||
throw filesystem::io_exception("Failed to load addon from dir '" + addon_dir + "'\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue