diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/playerrelations.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz manaverse-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 11118aee1..d79a621d5 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -552,7 +552,7 @@ bool PlayerRelationsManager::isGoodName(std::string name) { bool status(false); - const int size = name.size(); + const size_t size = name.size(); if (size < 3 || mRelations[name]) return true; @@ -572,7 +572,7 @@ bool PlayerRelationsManager::isGoodName(Being *being) return (being->getGoodStatus() == 1); const std::string name = being->getName(); - const int size = name.size(); + const size_t size = name.size(); if (size < 3 || mRelations[name]) return true; @@ -585,7 +585,7 @@ bool PlayerRelationsManager::isGoodName(Being *being) bool PlayerRelationsManager::checkName(const std::string &name) const { - const int size = name.size(); + const size_t size = name.size(); std::string check = config.getStringValue("unsecureChars"); std::string lastChar = name.substr(size - 1, 1); |