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
This commit is contained in:
Spoike 2018-08-21 18:47:42 +00:00
parent df8bd3ad8c
commit a805cb6534

View file

@ -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);