engine: fix -Wmaybe-uninitialized

This commit is contained in:
Alibek Omarov
2019-12-24 02:47:51 +03:00
parent d0dbd185ad
commit 0fe18ae6dc
11 changed files with 38 additions and 30 deletions
+2 -2
View File
@@ -1296,7 +1296,7 @@ void pfnSetModel( edict_t *e, const char *m )
char name[MAX_QPATH];
qboolean found = false;
model_t *mod;
int i;
int i = 1;
if( !SV_IsValidEdict( e ))
return;
@@ -1308,7 +1308,7 @@ void pfnSetModel( edict_t *e, const char *m )
if( COM_CheckString( name ))
{
// check to see if model was properly precached
for( i = 1; i < MAX_MODELS && sv.model_precache[i][0]; i++ )
for( ; i < MAX_MODELS && sv.model_precache[i][0]; i++ )
{
if( !Q_stricmp( sv.model_precache[i], name ))
{