Fix a stray magic number in pick_lock

This commit is contained in:
copperwater
2022-05-27 21:26:58 -04:00
parent 8e19d6628a
commit 9fa57cede7

View File

@@ -600,7 +600,7 @@ pick_lock(
autounlock ? yname(pick) : "");
c = ynq(qbuf);
if (c != 'y')
return 0;
return PICKLOCK_DID_NOTHING;
/* note: for !autounlock, 'apply' already did touch check */
if (autounlock && !touch_artifact(pick, &g.youmonst))