[model] Handle brush models with empty texture slots

It seems some maps have some empty texture slots (eg, e1m2).
This commit is contained in:
Bill Currie 2021-03-21 10:08:44 +09:00
parent 0a79348ce9
commit 7650df3400

View file

@ -274,7 +274,9 @@ Mod_LoadTextures (model_t *mod, bsp_t *bsp)
mod->name);
}
for (i = 0; i < m->nummiptex; i++) {
tx = brush->textures[i];
if (!(tx = brush->textures[i])) {
continue;
}
tx->render = render_data;
render_data += render_size;
mod_funcs->Mod_ProcessTexture (mod, tx);