added checks for m_vecOrigins in entities