mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-06-01 17:12:15 +00:00
check for null function
This commit is contained in:
parent
9e861128ec
commit
aa37db997c
1 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,8 @@ call_function (progs_t *pr, func_t func)
|
||||||
{
|
{
|
||||||
dfunction_t *newf;
|
dfunction_t *newf;
|
||||||
|
|
||||||
|
if (!func)
|
||||||
|
PR_RunError (pr, "NULL function");
|
||||||
newf = pr->pr_functions + func;
|
newf = pr->pr_functions + func;
|
||||||
if (newf->first_statement < 0) {
|
if (newf->first_statement < 0) {
|
||||||
// negative statements are built in functions
|
// negative statements are built in functions
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue