mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
make sure the pointed to def has a name before attempting to print it
This commit is contained in:
parent
da4015d8d1
commit
a1fa0b3feb
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ PR_ValueString (progs_t *pr, etype_t type, pr_type_t *val)
|
|||
def = PR_Get_Local_Def (pr, ofs);
|
||||
if (!def)
|
||||
def = ED_GlobalAtOfs (pr, ofs);
|
||||
if (def)
|
||||
if (def && def->s_name)
|
||||
snprintf (line, sizeof (line), "&%s",
|
||||
PR_GetString (pr, def->s_name));
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue