Dump locals stack when dumping main stack

Any shutdown functions in progs will need locals too.
This commit is contained in:
Bill Currie 2020-02-25 15:18:15 +09:00
parent 6a4ef598ab
commit 61d7f4f9c4

View file

@ -68,6 +68,7 @@ PR_RunError (progs_t * pr, const char *error, ...)
// dump the stack so PR_Error can shutdown functions
pr->pr_depth = 0;
pr->localstack_used = 0;
PR_Error (pr, "Program error: %s", string->str);
}