forked from 0ad/0ad
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:
parent
ff924aaffc
commit
95dbb8be25
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user