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 #493 from derek57/patch-3

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