Hey again, thanks for the code as usual.
Sorry for the bad example, I included the pointer to allocate for the vector because it seemed to get the same results with or without so I thought I might as well include it.
Anyways the problem wasn't the vectors\.
I lost my original code I was converting when I overwrote it with another file by accident when code blocks crashed (and I just copy and pasted an example I saw online to test).
I found some old images from my original code (I saved out every pass) and found out the passes with my new code were accurate until a certain pass that corrupted them.
This part had a lot of extra stuff that needed to be added for the conversion, so rechecked and fixed it and now it works perfect.
Thanks again.