diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-20 17:39:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-20 17:39:00 +0300 |
commit | 326e4bdd20fadadf374fba45c06f0ca74a5863c0 (patch) | |
tree | 08d7e0cc7ac896c548cfe05119f9961ab445150e /src/resources/db | |
parent | 847522f090935ca849a1f92603c25c305277c347 (diff) | |
download | plus-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.gz plus-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.bz2 plus-326e4bdd20fadadf374fba45c06f0ca74a5863c0.tar.xz plus-326e4bdd20fadadf374fba45c06f0ca74a5863c0.zip |
Add asserts about outdated attribute in status-effects.xml.
Diffstat (limited to 'src/resources/db')
-rw-r--r-- | src/resources/db/statuseffectdb.cpp | 5 |
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; } |