]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mvm_cmds.c
cleaned up client qc, menu qc, and server qc VM initialization a bit so they have...
[xonotic/darkplaces.git] / mvm_cmds.c
index 138dfc46aa068d93faa60bab347c3f88c27da741..b53f5282a1c6172b9d0785b1ed4a291947272d88 100644 (file)
@@ -200,7 +200,7 @@ void VM_M_callfunction(void)
                else
                        PRVM_ERROR("No such builtin #%i in %s", builtinnumber, PRVM_NAME);
        }
-       else if(func > 0)
+       else if(func - prog->functions > 0)
        {
                prog->argc--;
                PRVM_ExecuteProgram(func - prog->functions,"");