Hello!
I have come to a weird problem. My data seems to corrupt somehow with a little piece of code that is not at all connected to the thing that corrupts.
This bit of code corrupts data. It always seems to corrupt a certain data, but when I changed some code(not that piece of code) it started corrupting entirely different data.Code:if(FAILED(D3DXCreateTextureFromFile(DirX_Device, render_info[i].tex_name, &Texture[tex_count]))) { //Error processing } else { render_info[i].Texture=&Texture[tex_count]; tex_count=tex_count+1; }
My variable which should be 112 changes into something like 78590343 and before a char value "test" changed into "-|>*".
I have absolutely no idea what do do. The Texture loading code should use the right data, I checked it.