Fix flaw in my fix to #4737, thanks Zakk Middleton

This commit is contained in:
Thilo Schulz 2010-09-01 11:43:19 +00:00
parent fa34239f58
commit b1a86fb3d9
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ static void ArenaServers_Insert( char* adrstr, char* info, int pingtime )
}
*/
servernodeptr->nettype = atoi(Info_ValueForKey(info, "nettype"));
if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames)) {
if (servernodeptr->nettype < 0 || servernodeptr->nettype >= ARRAY_LEN(netnames) - 1) {
servernodeptr->nettype = 0;
}