Machen wir es ein wenig eindeutiger

This commit is contained in:
Yamagi Burmeister 2009-03-04 13:48:28 +00:00
parent ea789d8d97
commit 9c3b11561e

View file

@ -31,7 +31,7 @@ FIXME: this use of "area" is different from the bsp file use
*/
// FIXME: remove this mess!
#define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - (int)&(((t *)0)->m)))
#define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - (int)&(((t *)NULL)->m)))
#define EDICT_FROM_AREA(l) STRUCT_FROM_LINK(l,edict_t,area)