Well I downloaded 1.6.0-hg3980.zip for Windows and immediately got an error in a plugin which is using this function:
PHP Code:
GetRealClientCount(bool:inGameOnly)
{
new clients[MaxClients], numClients;
for (new i = 1; i <= MaxClients; i++)
{
if (((inGameOnly) ? IsClientInGame(i) : IsClientConnected(i)) && !IsFakeClient(i))
{
clients[numClients++] = i;
}
}
return numClients;
}
An error:
Code:
[SM] Plugin encountered error 17: Stack memory leaked by native
[SM] Displaying call stack trace for plugin "myplugin"
Reported on line "new clients[MaxClients], numClients;"
Previously on older versions I havent had this error. And I foudn a solution: when I change it to clients[MAXPLAYERS + 1] the error is not appearing. Should I file a bug instead?
__________________