mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 17:01:46 +00:00
return "" from PF_infokey when the client the key is being requested from
has been dropped. This fixes a nasty crash at the end of a match in tf 2.8+
This commit is contained in:
parent
814e2ddfe9
commit
2e8f780e03
1 changed files with 2 additions and 1 deletions
|
@ -1255,7 +1255,8 @@ PF_infokey (progs_t *pr)
|
|||
if (e1 == 0) {
|
||||
if ((value = Info_ValueForKey (svs.info, key)) == NULL || !*value)
|
||||
value = Info_ValueForKey (localinfo, key);
|
||||
} else if (e1 > 0 && e1 <= MAX_CLIENTS) {
|
||||
} else if (e1 > 0 && e1 <= MAX_CLIENTS
|
||||
&& svs.clients[e1 - 1].userinfo) {
|
||||
if (!strcmp (key, "ip"))
|
||||
value =
|
||||
strcpy (ov,
|
||||
|
|
Loading…
Reference in a new issue