OSDN Git Service

「TOband dev-team からバグ報告」のバグいろいろ修正。全部ではない。d_infoの'M:'フラグ等は取り入れなかった。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 24 Sep 2002 12:10:37 +0000 (12:10 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Tue, 24 Sep 2002 12:10:37 +0000 (12:10 +0000)
src/cmd4.c

index baf9435..58e3851 100644 (file)
@@ -1126,6 +1126,9 @@ void do_cmd_change_name(void)
                if (c == 'c')
                {
                        get_name();
+
+                        /* Process the player name */
+                        process_player_name(FALSE);
                }
 
                /* File dump */
@@ -5758,7 +5761,7 @@ static void do_cmd_knowledge_artifacts(void)
        }
 
        /* Allocate the "who" array */
-       C_MAKE(who, max_r_idx, s16b);
+       C_MAKE(who, max_a_idx, s16b);
 
        /* Allocate the "okay" array */
        C_MAKE(okay, max_a_idx, bool);
@@ -5888,7 +5891,7 @@ strcpy(base_name, "̤
        }
 
        /* Free the "who" array */
-       C_KILL(who, max_r_idx, s16b);
+       C_KILL(who, max_a_idx, s16b);
 
        /* Free the "okay" array */
        C_KILL(okay, max_a_idx, bool);