Original reason to create struct with 3 byte variables here was that I prefered low memory usage over speed in this particular case. I didn't like the code at the second I was writing it, but I still have to ask. Why this doesn't work?
The same struct with 3 int variables works perfectly. I can put the same data into 1 int by a little bit work to save some memory, that is not what I'm asking. I just wonder what List/struct policy generates this error and how can debugger show two different values for the same variable at the same time? The [0,0,1] are values program uses, while [1,13,0] are values that are supposed to be there.
The problem, struct
public struct s_move_count
{
public byte move;
public byte whiteCount;
public byte blackCount;
}
Variable ssm.moves (on a picture) is of type
List<s_move_count>
This is what debugger watch window shows. I guess it is not important in this case, but I write it anyway. I code in Visual Studio 2015 comunity and program is Windows Phone 8.1 application.
I guess the problem is in some sort of alignments or something like that. But I didn't find such a situation described on the internet.