From 54a23af75291c5f754b1edd1a8c8f1084bbd7a65 Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Fri, 9 Dec 2005 01:23:36 +0000 Subject: [PATCH] build fix (trunk only) Noticed by Michael: I accidentally put a declaration in the wrong spot and my compiler used C99 semantics to accept it there. --- src/do_wear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/do_wear.c b/src/do_wear.c index 43cd21285..4857c5a1c 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -438,9 +438,9 @@ Gloves_off() { long oldprop = u.uprops[objects[uarmg->otyp].oc_oprop].extrinsic & ~WORN_GLOVES; + boolean on_purpose = !context.mon_moving && !uarmg->in_use; context.takeoff.mask &= ~W_ARMG; - boolean on_purpose = !context.mon_moving && !uarmg->in_use; switch(uarmg->otyp) { case LEATHER_GLOVES: