even more endianness fixes by myself (Ronald Lasmanowicz)

I figured this out while porting Chocolate to the Nintendo Wii and also had to change these lines of code.
Merge pull request #492 from derek57/patch-2

No. 1: even more endianness fixes by myself (Ronald Lasmanowicz)