Correct the binary header of res files

In the 5 integers array, the first integer is 0 1 2 3 for S D C Z.