diff --git a/public/networkvar.h b/public/networkvar.h index 9c4c4e9d..fd9cfc66 100644 --- a/public/networkvar.h +++ b/public/networkvar.h @@ -22,7 +22,7 @@ #pragma warning( disable : 4284 ) // warning C4284: return type for 'CNetworkVarT::operator ->' is 'int *' (ie; not a UDT or reference to a UDT. Will produce errors if applied using infix notation) #endif -#define MyOffsetOf( type, var ) ( (int)&((type*)0)->var ) +#define MyOffsetOf( type, var ) ( (int)(intp)&((type*)0)->var ) #ifdef _DEBUG #undef new