mirror of
https://github.com/OpenArena/gamecode
synced 2026-08-20 18:23:03 -04:00
Make it easier to rationate about the code
This commit is contained in:
parent
1048e68b91
commit
b40d886115
1 changed files with 2 additions and 2 deletions
|
|
@ -2480,10 +2480,10 @@ qboolean G_admin_admintest( gentity_t *ent, int skiparg )
|
|||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
if (!found || i == MAX_ADMIN_ADMINS) {
|
||||
//The i == MAX_ADMIN_ADMINS check makes it easier for static analysers to rationate about the code
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
l = g_admin_admins[ i ]->level;
|
||||
for( i = 0; i < MAX_ADMIN_LEVELS && g_admin_levels[ i ]; i++ ) {
|
||||
if( g_admin_levels[ i ]->level != l )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue