mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
gl_model.c (Mod_LoadTextures): If lump->filelen == 0, initialize m to NULL
in order to avoid a bogus compiler warning. git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@151 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
35795de3d6
commit
d0808e3a96
1 changed files with 2 additions and 1 deletions
|
@ -371,7 +371,7 @@ void Mod_LoadTextures (lump_t *l)
|
|||
texture_t *tx, *tx2;
|
||||
texture_t *anims[10];
|
||||
texture_t *altanims[10];
|
||||
dmiptexlump_t *m;
|
||||
dmiptexlump_t *m;
|
||||
//johnfitz -- more variables
|
||||
char texturename[64];
|
||||
int nummiptex;
|
||||
|
@ -387,6 +387,7 @@ void Mod_LoadTextures (lump_t *l)
|
|||
{
|
||||
Con_Printf ("Mod_LoadTextures: no textures in bsp file\n");
|
||||
nummiptex = 0;
|
||||
m = NULL; // avoid bogus compiler warning
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue