OSDN Git Service

[Refactor] #38997 get_mon_num() にplayer_type * 引数追加 / Added player_type * argument...
[hengband/hengband.git] / src / player-status.c
index ac5fb40..09c7040 100644 (file)
@@ -5195,7 +5195,7 @@ void sanity_blast(player_type *creature_ptr, monster_type *m_ptr, bool necro)
 
                get_mon_num_prep(creature_ptr, get_nightmare, NULL);
 
-               r_ptr = &r_info[get_mon_num(MAX_DEPTH)];
+               r_ptr = &r_info[get_mon_num(creature_ptr, MAX_DEPTH)];
                power = r_ptr->level + 10;
                desc = r_name + r_ptr->name;