summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-05-13 16:31:46 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:47 +0200
commit6d14024f3df86c05e94f2b4161faf8f5d97c2c0f (patch)
tree1c007d09d1a00b95c34abe2d1ac581fe52f24ef2 /src/game-server
parent9314e60fc37d4940d80a4c110ead5c0b8c324947 (diff)
downloadmanaserv-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.
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/attributemanager.cpp6
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.");
}
}