mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[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:
parent
f21c2178fa
commit
9fbd16be05
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue