diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-08-05 02:20:34 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-08-05 02:20:34 +0000 |
commit | d25e1c9b0dac7fcfe803083af1189489d5a9ad88 (patch) | |
tree | 330e30558d62c4de99976305390a976fd5f8d958 /src/resources/itemmanager.cpp | |
parent | 97f1e5345cc8a88fed9c65035f2b01fc2eaf9cbd (diff) | |
download | mana-d25e1c9b0dac7fcfe803083af1189489d5a9ad88.tar.gz mana-d25e1c9b0dac7fcfe803083af1189489d5a9ad88.tar.bz2 mana-d25e1c9b0dac7fcfe803083af1189489d5a9ad88.tar.xz mana-d25e1c9b0dac7fcfe803083af1189489d5a9ad88.zip |
Some cleanups, mostly lowering indentation levels.
Diffstat (limited to 'src/resources/itemmanager.cpp')
-rw-r--r-- | src/resources/itemmanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemmanager.cpp b/src/resources/itemmanager.cpp index 56ac6354..63c0b036 100644 --- a/src/resources/itemmanager.cpp +++ b/src/resources/itemmanager.cpp @@ -30,6 +30,8 @@ #include "../log.h" +#include "../utils/dtor.h" + #define READ_PROP(node, prop, name, target, cast) \ prop = xmlGetProp(node, BAD_CAST name); \ if (prop) { \ @@ -56,14 +58,12 @@ ItemManager::ItemManager() if (!doc) { logger->error("Item Manager: Error while parsing item database (items.xml)!"); - return; } xmlNodePtr node = xmlDocGetRootElement(doc); if (!node || !xmlStrEqual(node->name, BAD_CAST "items")) { logger->error("Item Manager: items.xml is not a valid database file!"); - return; } for (node = node->xmlChildrenNode; node != NULL; node = node->next) |