summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/Steam/friend.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/Steam/friend.h')
-rw-r--r--protocols/Steam/src/Steam/friend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Steam/src/Steam/friend.h b/protocols/Steam/src/Steam/friend.h
index 00aceab272..a2c7780551 100644
--- a/protocols/Steam/src/Steam/friend.h
+++ b/protocols/Steam/src/Steam/friend.h
@@ -86,7 +86,7 @@ namespace SteamWebApi
root = json_as_array(node);
if (root != NULL)
{
- for (int i = 0;; i++)
+ for (size_t i = 0; i < json_size(root); i++)
{
child = json_at(root, i);
if (child == NULL)