diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-05 15:55:55 +0300 |
commit | d1bb1b375d657f0821ccfebf18fa1c3873314690 (patch) | |
tree | eb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/playerrelations.cpp | |
parent | 9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff) | |
download | manaverse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz manaverse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2 manaverse-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz manaverse-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip |
Fix useless variables initialisations.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r-- | src/playerrelations.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 6f244e5ab..a18d82aaa 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -560,22 +560,16 @@ PlayerRelationsManager::getPlayerIgnoreStrategies() bool PlayerRelationsManager::isGoodName(std::string name) { - bool status(false); - const size_t size = name.size(); if (size < 3 || mRelations[name]) return true; - status = checkName(name); - - return status; + return checkName(name); } bool PlayerRelationsManager::isGoodName(Being *const being) { - bool status(false); - if (!being) return false; if (being->getGoodStatus() != -1) @@ -587,8 +581,7 @@ bool PlayerRelationsManager::isGoodName(Being *const being) if (size < 3 || mRelations[name]) return true; - status = checkName(name); - + bool status = checkName(name); being->setGoodStatus(status ? 1 : 0); return status; } |