From 6765d8bd3c669d534350b8e24a98bd587d3e0ec1 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Mon, 25 Apr 2011 13:57:52 -0400 Subject: [PATCH] Looks like this should be initialized to 1. As the first if statement that changes the item sets it to 0 if no arg2 exists(which makes sense). Normal command operation is @atrlock obj=lock, or @atrlock obj. Thus no arg2 would be unlocking, and with arg2 would be a lock operation. IssueID #246 --- src/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attrib.c b/src/attrib.c index 9765d62..9123efe 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -2085,7 +2085,7 @@ do_atrlock(dbref player, const char *xarg1, const char *arg2, dbref thing, creator; char *p, *arg1; ATTR *ptr; - int status = 0; /* FIXME: temporary workaround, see #246 */ + int status = 1; /* FIXME: Issue should be in testing, see #246 */ boolexp key; if (!arg2 || !*arg2) -- 2.30.2