mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
mod->textures can legitimatly have null textures, so be on the lookout for
them. This fixes the client crash on certain levels.
This commit is contained in:
parent
85588c8fcb
commit
316386b542
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ Mod_LoadExternalTextures (model_t *mod)
|
|||
for (i = 0; i < mod->numtextures; i++)
|
||||
{
|
||||
tx = mod->textures[i];
|
||||
if (!tx)
|
||||
continue;
|
||||
length = strlen (tx->name) - 1;
|
||||
|
||||
// backslash at the end of texture name indicates external texture
|
||||
|
|
Loading…
Reference in a new issue