Fixed wrong condition in library.cpp
This commit is contained in:
parent
b30f03709a
commit
d019b7f9a6
|
@ -398,7 +398,7 @@ Library::Error Library::load(const tinyxml2::XMLDocument &doc)
|
||||||
const char* const inherits = node->Attribute("inherits");
|
const char* const inherits = node->Attribute("inherits");
|
||||||
if (inherits) {
|
if (inherits) {
|
||||||
std::map<std::string, Container>::const_iterator i = containers.find(inherits);
|
std::map<std::string, Container>::const_iterator i = containers.find(inherits);
|
||||||
if (inherits)
|
if (i != containers.end())
|
||||||
container = i->second; // Take values from parent and overwrite them if necessary
|
container = i->second; // Take values from parent and overwrite them if necessary
|
||||||
else
|
else
|
||||||
return Error(BAD_ATTRIBUTE_VALUE, inherits);
|
return Error(BAD_ATTRIBUTE_VALUE, inherits);
|
||||||
|
|
Loading…
Reference in New Issue