diff options
author | Przemysław Grzywacz <nexather@gmail.com> | 2013-05-22 16:04:19 +0200 |
---|---|---|
committer | Przemysław Grzywacz <nexather@gmail.com> | 2013-05-22 16:04:19 +0200 |
commit | f9cd8a5d6b4460ffcb945979d1e8cd8ebadc9b8d (patch) | |
tree | 9a9825a138b1e1c0e383b4a187fcf2f0d24a247f /src/resources/itemdb.cpp | |
parent | 64520d5f1f3c124435797fccae9b68be69e04133 (diff) | |
download | mana-f9cd8a5d6b4460ffcb945979d1e8cd8ebadc9b8d.tar.gz mana-f9cd8a5d6b4460ffcb945979d1e8cd8ebadc9b8d.tar.bz2 mana-f9cd8a5d6b4460ffcb945979d1e8cd8ebadc9b8d.tar.xz mana-f9cd8a5d6b4460ffcb945979d1e8cd8ebadc9b8d.zip |
paths.xml content is now read from settings.xml
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index b802457e..8c1a8d15 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -326,9 +326,6 @@ void TaItemDB::init() { if (mLoaded) unload(); - - mUnknown = new TaItemInfo; - loadEmptyItemDefinition(); } void TaItemDB::readItemNode(xmlNodePtr node, const std::string &filename) @@ -376,6 +373,9 @@ void TaItemDB::readItemNode(xmlNodePtr node, const std::string &filename) void TaItemDB::checkStatus() { + mUnknown = new TaItemInfo; + loadEmptyItemDefinition(); + checkHairWeaponsRacesSpecialIds(); mLoaded = true; @@ -417,9 +417,6 @@ void ManaServItemDB::init() // Initialize the trigger table for effect descriptions initTriggerTable(); - - mUnknown = new ManaServItemInfo; - loadEmptyItemDefinition(); } void ManaServItemDB::readItemNode(xmlNodePtr node, const std::string &filename) @@ -530,6 +527,9 @@ void ManaServItemDB::readItemNode(xmlNodePtr node, const std::string &filename) void ManaServItemDB::checkStatus() { + mUnknown = new ManaServItemInfo; + loadEmptyItemDefinition(); + mLoaded = true; } |