summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-20 17:39:00 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-20 17:39:00 +0300
commit326e4bdd20fadadf374fba45c06f0ca74a5863c0 (patch)
tree08d7e0cc7ac896c548cfe05119f9961ab445150e
parent847522f090935ca849a1f92603c25c305277c347 (diff)
downloadmanaverse-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.gz
manaverse-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.bz2
manaverse-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.xz
manaverse-326e4bdd20fadadf374fba45c06f0ca74a5863c0.zip
Add asserts about outdated attribute in status-effects.xml.
-rw-r--r--src/resources/db/statuseffectdb.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resources/db/statuseffectdb.cpp b/src/resources/db/statuseffectdb.cpp
index 0b0618783..bf44a4189 100644
--- a/src/resources/db/statuseffectdb.cpp
+++ b/src/resources/db/statuseffectdb.cpp
@@ -76,6 +76,11 @@ void StatusEffectDB::load()
SkipError_true);
loadXmlDir("statusEffectsPatchDir", loadXmlFile);
+ if (!blockIdToIdMap.empty())
+ {
+ reportAlways("Detected legacy attribute block-id "
+ "in status-effects.xml");
+ }
mLoaded = true;
}