Good morning, I'm running into some issues with the priority_queue system. While emptying all batches, the queue is re-ordering itself when completing a Queue.top() and Queue.pop() which doesn't make sense after the queue is built.
While stepping through this loop, I took two pictures of the queue's contents. First one shows the two Batch3D at the top of the queue. But after popping the first Batch3D a Batch2D gets re-ordered to the top. Been looking at this error for awhile now and can't figure out the bug. Any help would be greatly appreciated.
FBatch* Batch = Queue.top();
Start of loop to empty batches (Two Batch3D at top):
After first Batch3D pop (Batch2D moves to top over remaining Batch3D):