From 9a9cd45d0164d49f5f576cfbbc1e894298c94c5f Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Fri, 28 May 2010 20:06:32 +0000 Subject: [PATCH] seriously... what is the problem in putting a variable size array in the stack? git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5091 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/server.cpp b/source/src/server.cpp index e73264cf..0da2f532 100644 --- a/source/src/server.cpp +++ b/source/src/server.cpp @@ -3160,7 +3160,7 @@ void linequalitystats(int elapsed) void sendscores() { if ( gamemillis < nextsendscore ) return; - int count = 0, list[clientnumber]; + int count = 0, list[MAXCLIENTS]; loopv(clients) { client &c = *clients[i]; if ( c.type!=ST_TCPIP || !c.isauthed || !c.md.updatedpoints ) continue;