mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
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:
parent
bcb1374391
commit
3e380309ce
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue