mirror of
https://github.com/halpz/re3.git
synced 2025-07-24 23:19:44 +00:00
fix UB and new renderer crashes
This commit is contained in:
@ -96,6 +96,10 @@ CVisibilityPlugins::InitAlphaEntityList(void)
|
||||
bool
|
||||
CVisibilityPlugins::InsertEntityIntoSortedList(CEntity *e, float dist)
|
||||
{
|
||||
#ifdef FIX_BUGS
|
||||
if (!e->m_rwObject) return true;
|
||||
#endif
|
||||
|
||||
AlphaObjectInfo item;
|
||||
item.entity = e;
|
||||
item.sort = dist;
|
||||
|
Reference in New Issue
Block a user