[renderer] Avoid infinite loop

If the entity didn't have a known model type, R_StoreEfrags would get
stuck in an infinite loop (fortunately, never actually happened. The
result of making it not call Sys_Error for unknown models)).
This commit is contained in:
Bill Currie 2022-03-30 11:05:16 +09:00
parent f21c2178fa
commit 9fbd16be05

View file

@ -236,10 +236,10 @@ R_StoreEfrags (const efrag_t *efrag)
case mod_sprite:
case mod_iqm:
EntQueue_AddEntity (r_ent_queue, ent, model->type);
efrag = efrag->leafnext;
break;
default:
}
efrag = efrag->leafnext;
}
}