mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +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);
|
def = PR_Get_Local_Def (pr, ofs);
|
||||||
if (!def)
|
if (!def)
|
||||||
def = ED_GlobalAtOfs (pr, ofs);
|
def = ED_GlobalAtOfs (pr, ofs);
|
||||||
if (def)
|
if (def && def->s_name)
|
||||||
snprintf (line, sizeof (line), "&%s",
|
snprintf (line, sizeof (line), "&%s",
|
||||||
PR_GetString (pr, def->s_name));
|
PR_GetString (pr, def->s_name));
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue