mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[ruamoko] Report class name in obj_verror
This commit is contained in:
parent
a1f67b5d6f
commit
59481bdf61
1 changed files with 2 additions and 1 deletions
|
@ -1021,10 +1021,11 @@ obj_verror (probj_t *probj, pr_id_t *object, int code, const char *fmt, int coun
|
|||
pr_type_t **args)
|
||||
{
|
||||
progs_t *pr = probj->pr;
|
||||
__auto_type class = &G_STRUCT (pr, pr_class_t, object->class_pointer);
|
||||
dstring_t *dstr = dstring_newstr ();
|
||||
|
||||
PR_Sprintf (pr, dstr, "obj_verror", fmt, count, args);
|
||||
PR_RunError (pr, "%s", dstr->str);
|
||||
PR_RunError (pr, "%s: %s", PR_GetString (pr, class->name), dstr->str);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue