diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/colordb.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/colordb.cpp b/src/resources/colordb.cpp index 271becbf..d654762c 100644 --- a/src/resources/colordb.cpp +++ b/src/resources/colordb.cpp @@ -58,6 +58,11 @@ void ColorDB::load() TMWHair = true; XML::Document doc(TMW_COLOR_FILE); root = doc.rootNode(); + if (!root || !xmlStrEqual(root->name, BAD_CAST "colors")) + { + mLoaded = true; + return; + } } for_each_xml_child_node(node, root) { |