Skip to content

Commit 85dbdba

Browse files
Rework Amulet Handling
Amulet handling for the amulet of name/title changing to use the existing object being stored in the call rather than accessing throw the os_amul variable.
1 parent 68ccdb9 commit 85dbdba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnethack/src/do_wear.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ setequip(enum objslot slot, struct obj *otmp, enum equipmsg msgtype)
442442
break;
443443
case AMULET_OF_CHANGE_TITLE:
444444
/* Cursed and uncursed amulets do nothing. */
445-
if (uamul->blessed) {
445+
if (o->blessed) {
446446
const char *buf = getlin(
447447
"The amulet glows. What do you want to be called?", 0);
448448
strncpy(u.title, buf, sizeof(u.title) - 1);

0 commit comments

Comments
 (0)