0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-22 18:31:27 +00:00

don't segfault when there are holes in the texture list

This commit is contained in:
Bill Currie 2007-05-16 09:23:54 +00:00 committed by Jeff Teunissen
parent 85c5594148
commit 866eaa22f6

View file

@ -142,7 +142,7 @@ mod_unique_miptex_name (texture_t **textures, texture_t *tx, int ind)
name[16] = 0;
do {
for (i = 0; i < ind; i++)
if (!strcmp (textures[i]->name, tx->name))
if (textures[i] && !strcmp (textures[i]->name, tx->name))
break;
if (i == ind)
break;