diff --git a/libs/net/nm/net_vcr.c b/libs/net/nm/net_vcr.c index 8111298dd..505a68e4e 100644 --- a/libs/net/nm/net_vcr.c +++ b/libs/net/nm/net_vcr.c @@ -143,7 +143,7 @@ qboolean VCR_CanSendMessage (qsocket_t * sock) { qboolean ret; - long *driverdata = (long *) &sock->driverdata; + long *driverdata = (long *) (char *) &sock->driverdata; if (host_time != next.time || next.op != VCR_OP_CANSENDMESSAGE || next.session != *driverdata) @@ -191,7 +191,7 @@ VCR_CheckNewConnections (void) } sock = NET_NewQSocket (); - driverdata = (long *) &sock->driverdata; + driverdata = (long *) (char *) &sock->driverdata; *driverdata = next.session; Qread (vcrFile, sock->address, NET_NAMELEN);