From 326e4bdd20fadadf374fba45c06f0ca74a5863c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Jul 2016 17:39:00 +0300 Subject: Add asserts about outdated attribute in status-effects.xml. --- src/resources/db/statuseffectdb.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resources') 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; } -- cgit v1.2.3-70-g09d2