From 29908ac1ecbc18e76c071a1e78209fa61a354963 Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 20 Feb 2007 21:40:26 +0000 Subject: [PATCH] Fixed bug with failed @su/@sd passwords breaking @program --- src/prog.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2