From: Ari Johnson Date: Tue, 20 Feb 2007 21:40:26 +0000 (+0000) Subject: Fixed bug with failed @su/@sd passwords breaking @program X-Git-Tag: 0.72p3~4 X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=a9578166ffb806f37a6297ec49c840bfed04a449;p=cobramush.git Fixed bug with failed @su/@sd passwords breaking @program (cherry picked from commit 29908ac1ecbc18e76c071a1e78209fa61a354963) --- diff --git a/src/prog.c b/src/prog.c index a7b443a..65811f6 100644 --- a/src/prog.c +++ b/src/prog.c @@ -521,6 +521,8 @@ password_handler(DESC * d, char *input) queue_newwrite(d, (unsigned char *) "Invalid password.\r\n", 19); do_log(LT_WIZ, d->player, d->pinfo.object, "** @SU FAIL **"); d->pinfo.object = NOTHING; + d->pinfo.function = NULL; + d->pinfo.lock = 0; return 1; }