mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-25 13:32:01 +00:00
make sure the server doesn't seg if an info cvar is set early
This commit is contained in:
parent
fea862d434
commit
9f0035bdf9
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ Cvar_Info (cvar_t *var)
|
|||
if (var->flags & CVAR_SERVERINFO) {
|
||||
unsigned char info[1024], *p, *c;
|
||||
|
||||
if (!sv_highchars->int_val) {
|
||||
if (!sv_highchars || !sv_highchars->int_val) {
|
||||
for (p = info, c = var->string;
|
||||
*c && (p - info < sizeof (info) - 1);) {
|
||||
*c &= 0x7f;
|
||||
|
|
Loading…
Reference in a new issue