summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbjj <bjj>2004-03-03 23:06:57 (GMT)
committerbjj <bjj>2004-03-03 23:06:57 (GMT)
commit616bff64c818aa348bd367e04123d361f90cbe95 (patch)
tree3dfe4806b1d57466fb8025874b139f5a514e0977
parent29e08facdf6416cfe0df16c863bb89400e1d84f9 (diff)
downloadmoo-616bff64c818aa348bd367e04123d361f90cbe95.zip
moo-616bff64c818aa348bd367e04123d361f90cbe95.tar.gz
moo-616bff64c818aa348bd367e04123d361f90cbe95.tar.bz2
moo-616bff64c818aa348bd367e04123d361f90cbe95.tar.xz
Luke-Jr's patch for read_activ FUNC_NOT_FOUND
-rw-r--r--execute.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index 385d439..114fa1d 100644
--- a/execute.c
+++ b/execute.c
@@ -2858,11 +2858,11 @@ read_activ(activation * a, int which_vector)
}
if (a->bi_func_pc != 0) {
func_name = dbio_read_string();
- a->bi_func_id = number_func_by_name(func_name);
- if (a->bi_func_id == FUNC_NOT_FOUND) {
+ if ((i = number_func_by_name(func_name)) == FUNC_NOT_FOUND) {
errlog("READ_ACTIV: Unknown built-in function `%s'\n", func_name);
return 0;
}
+ a->bi_func_id = i;
if (!read_bi_func_data(a->bi_func_id, &a->bi_func_data,
&a->bi_func_pc)) {
errlog("READ_ACTIV: Bad saved state for built-in function `%s'\n",
@@ -2878,6 +2878,9 @@ char rcsid_execute[] = "$Id$";
/*
* $Log$
+ * Revision 1.15 2004/03/03 23:06:57 bjj
+ * Luke-Jr's patch for read_activ FUNC_NOT_FOUND
+ *
* Revision 1.14 2002/09/15 23:21:01 xplat
* GNU indent normalization.
*