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:
Bill Currie 2002-01-24 02:44:19 +00:00
parent 85588c8fcb
commit 316386b542

View file

@ -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