summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_accounts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_accounts.cpp')
-rw-r--r--protocols/Steam/src/steam_accounts.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_accounts.cpp b/protocols/Steam/src/steam_accounts.cpp
index 43ec787c5f..8fedcc6181 100644
--- a/protocols/Steam/src/steam_accounts.cpp
+++ b/protocols/Steam/src/steam_accounts.cpp
@@ -27,9 +27,9 @@ CSteamProto* CSteamProto::GetContactAccount(MCONTACT hContact)
if (proto == nullptr)
return nullptr;
- for (int i = 0; i < Accounts.getCount(); i++)
- if (!mir_strcmp(proto, Accounts[i]->m_szModuleName))
- return Accounts[i];
+ for (auto &it : Accounts)
+ if (!mir_strcmp(proto, it->m_szModuleName))
+ return it;
return nullptr;
} \ No newline at end of file