Replace error condition in rejectQueue_remove() with an assertion, because the NULL pointer it would return if something was fucked up would be unconditionally dereferenced in kdtree_add().

git-svn-id: https://svn.eduke32.com/eduke32@7058 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-10-10 19:14:56 +00:00
parent bcb1374391
commit 3e380309ce

View file

@ -260,10 +260,7 @@ static char rejectQueue_add(TreeNode *pNode)
static TreeNode* rejectQueue_remove()
{
if (numRejected == 0)
{
return NULL;
}
Bassert(numRejected);
--numRejected;
TreeNode* pNode = rejectQueue+rejectQueueHeadIndex;