So heres the problem, we load our MS3D Model, we create a data structure array for each property, materials, vertices, physics, positions, etc etc...
The problem is, that when the model doesn't have any material properties, and we push that back into the vector, it breaks, not when we push it back, thats no problem, but it seems it keeps pushing back some incredibly random number when material properties is nothing.
Then when we try to render it, it breaks, because it is trying to look up an ID that essentially doesn't exist, some huge number like 34234698 or something silly like that...
Should I create error materials? So when there is no material present it just loads an error material? Because vectors don't seem to enjoy pushing back empty pointers... If it would just push back the null pointer and return an ID of 0 when it is called, there would be no problem, but it seems to like adding a giant random number when this event occurs, breaking the program...
What to dooo?