Fix broken assertion in d0fc8ff67d

I incorrectly assumed no local entities would be making range queries,
but some building previews do. The assert is thus incorrect.

Reported by: SubitaNeo
Fixes #5870

Differential Revision: https://code.wildfiregames.com/D3125
This was SVN commit r24223.
This commit is contained in:
wraitii 2020-11-20 15:30:55 +00:00
parent ff924aaffc
commit 95dbb8be25

View File

@ -1379,7 +1379,6 @@ public:
if (q.source.GetId() != INVALID_ENTITY && q.maxRange != entity_pos_t::FromInt(-1))
{
EntityMap<EntityData>::const_iterator it = m_EntityData.find(q.source.GetId());
ENSURE(it != m_EntityData.end());
// Adjust the range query based on the querier's obstruction radius.
// The smallest side of the obstruction isn't known here, so we can't safely adjust the min-range, only the max.
// 'size' is the diagonal size rounded up so this will cover all possible rotations of the querier.