summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-30 21:21:52 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-30 21:21:52 +0300
commitf5dfdae24c0a142b42a039d5d56ed973eda071dc (patch)
treea2314944e242663b23020adc4e9cf59d810927bb /src
parente6ab5b97957bcfc143876c036af90f7883395ab9 (diff)
downloadmanaverse-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.cpp3
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;