Engine keeps freezing due to a do-while loop

Please use code tags , and you need to post the entire body of your loop if you want us to try to figure out what’s wrong.

(If that is the entire body of your loop, then your problem is that the loop’s condition will never change from being true to being false as a result of anything that happens inside the loop, so the loop can never end. If your loop condition is based on the variable selectionQueue, then you need to be doing something with selectionQueue inside the loop.)