From: Ari Johnson Date: Mon, 11 Sep 2006 05:42:50 +0000 (+0000) Subject: Fixed notify bug that caused extchat to crash X-Git-Tag: 0.72p1~7 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=4a12e04855e09c43ecdfb00902d1faafd47e04d4;p=cobramush.git Fixed notify bug that caused extchat to crash (cherry picked from commit 236c76103363888c2227d08b6834907611ad6526) --- diff --git a/src/notify.c b/src/notify.c index ed1f09d..da9d6b2 100644 --- a/src/notify.c +++ b/src/notify.c @@ -823,13 +823,14 @@ notify_anything_loc(dbref speaker, na_lookup func, /* Evaluate the On Contact Message */ if(flags & NA_EVALONCONTACT) { - wsave[j] = global_eval_context.wenv[j]; + for (j = 0; j < 10; j++) + wsave[j] = global_eval_context.wenv[j]; global_eval_context.wenv[0] = msgbuf; for (j = 1; j < 10; j++) global_eval_context.wenv[j] = NULL; bp = eocm; - process_expression(eocm, &bp, (const char **) &msgbuf, target, speaker, speaker, - PE_DEFAULT, PT_DEFAULT, NULL); + process_expression(eocm, &bp, (const char **) &msgbuf, target, speaker, + speaker, PE_DEFAULT, PT_DEFAULT, NULL); *bp = 0; for (j = 0; j < 10; j++) global_eval_context.wenv[j] = wsave[j];