diff --git a/source/build/src/tilepacker.cpp b/source/build/src/tilepacker.cpp index 731d683f0..5aafb1be5 100644 --- a/source/build/src/tilepacker.cpp +++ b/source/build/src/tilepacker.cpp @@ -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;