summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network.c b/src/network/network.c
index d3bad7574..ac8dd82b7 100644
--- a/src/network/network.c
+++ b/src/network/network.c
@@ -81,7 +81,7 @@ NetworkClientState *NetworkFindClientStateFromIndex(uint16 client_index)
{
NetworkClientState *cs;
- for (cs = _clients; cs != &_clients[MAX_CLIENT_INFO]; cs++) {
+ for (cs = _clients; cs != endof(_clients); cs++) {
if (cs->index == client_index) return cs;
}