mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Fix flaw in my fix to #4737, thanks Zakk Middleton
This commit is contained in:
parent
fa34239f58
commit
b1a86fb3d9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue