summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/playerrelations.cpp')
-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;