For example in the Scene Manager i have a pointer that holds all the objects declared as such
CGameObject * GameObjects;
And then use it in the cpp in various places. one example where i get the error is here
if(GameObjects[i]->shader == j+1)
as far as i understand this error can appear when using the -> operator on non pointer types but GameObjects is a pointer.
Could anyone help me?
If posting the whole files will help you understand better let me know.
EDIT: upon further investigation the cause seems to be the use of STL. i used STL to read from files and now since i turned the SM and RM into global extern it seem STL is overwriting some pointer operators. Could someone tell me how to block this overwrite? ide like to keep using the file reading i implemented if possible if not could someone point me towards some file reading that doesnt use the STL? all the examples i have found so far use STL.