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:
Bill Currie 2002-02-13 05:49:24 +00:00
parent 814e2ddfe9
commit 2e8f780e03

View file

@ -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,