Fix incorrect actor flag handling on big endian platforms

This commit is contained in:
alexey.lysiuk 2014-06-28 10:52:26 +03:00
parent 7b69c60af1
commit 65203760a8

View file

@ -167,7 +167,7 @@ INTBOOL CheckActorFlag(const AActor *owner, FFlagDef *fd)
{
return fd->flagbit & *(DWORD *)(((char*)owner) + fd->structoffset);
}
#ifdef __BID_ENDIAN__
#ifdef __BIG_ENDIAN__
else if (fd->fieldsize == 2)
{
return fd->flagbit & *(WORD *)(((char*)owner) + fd->structoffset);