OSDN Git Service

Backport simplified version of change from 3.0.0 so the English activation message...
authorEric Branlund <ebranlund@fastmail.com>
Thu, 11 Aug 2022 19:41:11 +0000 (13:41 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Thu, 11 Aug 2022 19:41:11 +0000 (13:41 -0600)
src/cmd-activate.c

index 44a5c44..7a5100c 100644 (file)
@@ -669,7 +669,7 @@ bool activate_artifact(object_type *o_ptr)
        PLAYER_LEVEL plev = p_ptr->lev;
        int k, dummy = 0;
        DIRECTION dir;
-       concptr name = k_name + k_info[o_ptr->k_idx].name;
+       GAME_TEXT name[MAX_NLEN];
        const activation_type* const act_ptr = find_activation_info(o_ptr);
        if (!act_ptr) {
                /* Maybe forgot adding information to activation_info table ? */
@@ -677,6 +677,8 @@ bool activate_artifact(object_type *o_ptr)
                return FALSE;
        }
 
+       strip_name(name, o_ptr->k_idx);
+
        /* Activate for attack */
        switch (act_ptr->index)
        {