mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +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;
|
||||
|
||||
if (!func)
|
||||
PR_RunError (pr, "NULL function");
|
||||
newf = pr->pr_functions + func;
|
||||
if (newf->first_statement < 0) {
|
||||
// negative statements are built in functions
|
||||
|
|
Loading…
Reference in a new issue