Don't crash quite so hard on big endian systems.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2523 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2007-07-18 15:24:57 +00:00
parent 6d6beaee1e
commit 656807e41a

View file

@ -836,7 +836,7 @@ void NPP_QWFlush(void)
{
short data;
float org[3];
edict_t *ent = EDICT_NUM(svprogfuncs, (*(short*)&buffer[1]));
edict_t *ent = EDICT_NUM(svprogfuncs, LittleShort((*(short*)&buffer[1])));
VectorCopy(ent->v->origin, org);
data = LittleShort((short)(org[0]*8));