fix UB and new renderer crashes

This commit is contained in:
withmorten
2021-01-31 01:19:25 +01:00
parent e5190481e4
commit 2e37001881
2 changed files with 8 additions and 0 deletions

View File

@ -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;