From a805cb653468ede9c6b7613e58b5178e8eef3756 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 21 Aug 2018 18:47:42 +0000 Subject: [PATCH] I was trying to be lazy, making bad assumptions about pointer arithmatic. This should fix certain multiplayer setups. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5292 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/server/sv_send.c b/engine/server/sv_send.c index ec2af0d99..fb67e3fa4 100644 --- a/engine/server/sv_send.c +++ b/engine/server/sv_send.c @@ -3003,7 +3003,7 @@ static qboolean SV_SyncInfoBuf(client_t *client) else { ClientReliableWrite_Begin(client, svc_setinfo, 2+strlen(enckey)+1+strlen(encval)+1); - ClientReliableWrite_Byte(client, (client_t*)info-svs.clients); + ClientReliableWrite_Byte(client, (client_t*)((char*)info-(char*)&((client_t*)NULL)->userinfo)-svs.clients); } ClientReliableWrite_String(client, enckey); ClientReliableWrite_String(client, encval);