diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-13 16:31:46 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:47 +0200 |
commit | 6d14024f3df86c05e94f2b4161faf8f5d97c2c0f (patch) | |
tree | 1c007d09d1a00b95c34abe2d1ac581fe52f24ef2 | |
parent | 9314e60fc37d4940d80a4c110ead5c0b8c324947 (diff) | |
download | manaserv-6d14024f3df86c05e94f2b4161faf8f5d97c2c0f.tar.gz manaserv-6d14024f3df86c05e94f2b4161faf8f5d97c2c0f.tar.bz2 manaserv-6d14024f3df86c05e94f2b4161faf8f5d97c2c0f.tar.xz manaserv-6d14024f3df86c05e94f2b4161faf8f5d97c2c0f.zip |
Warn when defining an attribute without a scope
Attributes without a scope make no sense.
-rw-r--r-- | src/game-server/attributemanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index f71f4fa5..4c551c5a 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -135,10 +135,10 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) LOG_DEBUG("Attribute manager: attribute '" << id << "' added to default being scope."); } - else if (scope == "NONE") + else { - LOG_DEBUG("Attribute manager: attribute '" << id - << "' set to have no default scope."); + LOG_WARN("Attribute manager: attribute '" << id + << "' has no scope."); } } |