Variables sorting

Variables sorting

Buch's picture

Maybe this isn't the most appropriate forum to discuss about this, but I'll try... Sorry if it isn't

I found a really strange error while developing my game (using C++): if I sort the variables inside a class in a certain way, it works, but if the variables are sorted in another way the game crashes when I declare the first instance of that class.

I've been googling for this kind of problem for a lot of time, but I didn't find anything about it...

Does anyone know this problem (and possibly its solution)?