From a23de78d86d131c52b5c8e7d069e95abebc041f9 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Sun, 31 Jul 2005 00:12:09 +0000 Subject: [PATCH] NULL function crash fix git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1178 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/qclib/execloop.h | 2 +- engine/qclib/execloop16d.h | 2 +- engine/qclib/execloop32.h | 2 +- engine/qclib/execloop32d.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/qclib/execloop.h b/engine/qclib/execloop.h index fae820ebf..070830772 100644 --- a/engine/qclib/execloop.h +++ b/engine/qclib/execloop.h @@ -493,7 +493,7 @@ reeval: if ((fnum & ~0xff000000)==0) { pr_trace++; - printf("NULL function from qc (%s).\n", pr_xfunction->s_name); + printf("NULL function from qc (%s).\n", progfuncs->stringtable + pr_xfunction->s_name); #ifndef DEBUGABLE goto cont; #endif diff --git a/engine/qclib/execloop16d.h b/engine/qclib/execloop16d.h index fae820ebf..070830772 100644 --- a/engine/qclib/execloop16d.h +++ b/engine/qclib/execloop16d.h @@ -493,7 +493,7 @@ reeval: if ((fnum & ~0xff000000)==0) { pr_trace++; - printf("NULL function from qc (%s).\n", pr_xfunction->s_name); + printf("NULL function from qc (%s).\n", progfuncs->stringtable + pr_xfunction->s_name); #ifndef DEBUGABLE goto cont; #endif diff --git a/engine/qclib/execloop32.h b/engine/qclib/execloop32.h index fae820ebf..070830772 100644 --- a/engine/qclib/execloop32.h +++ b/engine/qclib/execloop32.h @@ -493,7 +493,7 @@ reeval: if ((fnum & ~0xff000000)==0) { pr_trace++; - printf("NULL function from qc (%s).\n", pr_xfunction->s_name); + printf("NULL function from qc (%s).\n", progfuncs->stringtable + pr_xfunction->s_name); #ifndef DEBUGABLE goto cont; #endif diff --git a/engine/qclib/execloop32d.h b/engine/qclib/execloop32d.h index fae820ebf..070830772 100644 --- a/engine/qclib/execloop32d.h +++ b/engine/qclib/execloop32d.h @@ -493,7 +493,7 @@ reeval: if ((fnum & ~0xff000000)==0) { pr_trace++; - printf("NULL function from qc (%s).\n", pr_xfunction->s_name); + printf("NULL function from qc (%s).\n", progfuncs->stringtable + pr_xfunction->s_name); #ifndef DEBUGABLE goto cont; #endif