diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-01 02:51:41 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-05-01 02:51:41 +0200 |
commit | ab95093c44bdde1d1aeccf20c46ecb87a7d244a9 (patch) | |
tree | 71298442b29dbfaa18470120c1fb60ab514c1534 /src/effectmanager.cpp | |
parent | f2424b19159dfbab1c01bf29c615a7bf029b0762 (diff) | |
download | mana-ab95093c44bdde1d1aeccf20c46ecb87a7d244a9.tar.gz mana-ab95093c44bdde1d1aeccf20c46ecb87a7d244a9.tar.bz2 mana-ab95093c44bdde1d1aeccf20c46ecb87a7d244a9.tar.xz mana-ab95093c44bdde1d1aeccf20c46ecb87a7d244a9.zip |
Handle the old <being-effects> tag until the 0.5 series has died.
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r-- | src/effectmanager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp index 45211c56..576d48b6 100644 --- a/src/effectmanager.cpp +++ b/src/effectmanager.cpp @@ -34,8 +34,12 @@ EffectManager::EffectManager() if (!root || !xmlStrEqual(root->name, BAD_CAST "effects")) { - logger->log("Error loading being effects file: effects.xml"); - return; + // Handle old naming until the 0.5.x versions are obsolete. + if (!root || !xmlStrEqual(root->name, BAD_CAST "being-effects")) + { + logger->log("Error loading being effects file: effects.xml"); + return; + } } else { |