From b7db71b50e5f69f65412f9e8c8e4fdd7f240ab9c Mon Sep 17 00:00:00 2001 From: driAn Date: Sun, 11 May 2008 10:47:37 +0000 Subject: [PATCH] restrict sv_resume loop to MAXCLIENTS git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1932 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index 2863a4b2..1e7de1bf 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -389,7 +389,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p) case SV_RESUME: { - for(;;) + loopi(MAXCLIENTS) { int cn = getint(p); if(cn<0) break;