mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
make sure we actually have a stack frame
This commit is contained in:
parent
997102fea8
commit
7827086b54
1 changed files with 2 additions and 1 deletions
|
@ -515,7 +515,8 @@ PR_FreeTempStrings (progs_t *pr)
|
|||
t = sr->next;
|
||||
if (sr->type != str_temp)
|
||||
PR_Error (pr, "internal string error");
|
||||
if (R_STRING (pr) < 0 && string_index (pr, sr) == R_STRING (pr)) {
|
||||
if (R_STRING (pr) < 0 && string_index (pr, sr) == R_STRING (pr)
|
||||
&& pr->pr_depth) {
|
||||
prstack_t *frame = pr->pr_stack + pr->pr_depth - 1;
|
||||
sr->next = frame->tstr;
|
||||
frame->tstr = sr;
|
||||
|
|
Loading…
Reference in a new issue