fix [load_resouce] bug #3757
thisfixesan assertion failure when using [load_resource]
This commit is contained in:
parent
c769311395
commit
36bf3a0107
1 changed files with 2 additions and 1 deletions
|
@ -417,7 +417,8 @@ bool config::has_child(config_key_type key) const
|
|||
{
|
||||
check_valid();
|
||||
|
||||
return children_.find(key) != children_.end();
|
||||
child_map::const_iterator i = children_.find(key);
|
||||
return i != children_.end() && !i->second.empty();
|
||||
}
|
||||
|
||||
config& config::child(config_key_type key, int n)
|
||||
|
|
Loading…
Add table
Reference in a new issue