diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-30 21:21:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-30 21:21:52 +0300 |
commit | f5dfdae24c0a142b42a039d5d56ed973eda071dc (patch) | |
tree | a2314944e242663b23020adc4e9cf59d810927bb /src | |
parent | e6ab5b97957bcfc143876c036af90f7883395ab9 (diff) | |
download | manaverse-f5dfdae24c0a142b42a039d5d56ed973eda071dc.tar.gz manaverse-f5dfdae24c0a142b42a039d5d56ed973eda071dc.tar.bz2 manaverse-f5dfdae24c0a142b42a039d5d56ed973eda071dc.tar.xz manaverse-f5dfdae24c0a142b42a039d5d56ed973eda071dc.zip |
improve size() usage in playerrelations.
Diffstat (limited to 'src')
-rw-r--r-- | src/playerrelations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp index 6cb8b6c63..70d726d52 100644 --- a/src/playerrelations.cpp +++ b/src/playerrelations.cpp @@ -167,7 +167,8 @@ int PlayerRelationsManager::getPlayerIgnoreStrategyIndex( if (!strategies) return -1; - for (unsigned int i = 0; i < strategies->size(); i++) + const size_t sz = strategies->size(); + for (size_t i = 0; i < sz; i++) { if ((*strategies)[i]->mShortName == name) return i; |