OSDN Git Service

[Fix] #963 Resolved the indication that unique_ptr<PlayerAlignment> should be PlayerA...
[hengbandforosx/hengbandosx.git] / src / view / display-self-info.cpp
index 4b85111..5f664ac 100644 (file)
@@ -1,9 +1,11 @@
 #include "view/display-self-info.h"
 #include "io/input-key-acceptor.h"
+#include "player-info/alignment.h"
 #include "player-info/avatar.h"
 #include "player-info/self-info-util.h"
 #include "player/player-race.h"
 #include "player/player-status-table.h"
+#include "system/player-type-definition.h"
 #include "term/screen-processor.h"
 #include <string>
 
@@ -33,7 +35,7 @@ void display_max_base_status(player_type *creature_ptr, self_info_type *self_ptr
 void display_virtue(player_type *creature_ptr, self_info_type *self_ptr)
 {
     self_ptr->info[self_ptr->line++] = "";
-    std::string alg = your_alignment(creature_ptr, true);
+    std::string alg = PlayerAlignment(creature_ptr).get_alignment_description(true);
     sprintf(self_ptr->plev_buf, _("現在の属性 : %s", "Your alignment : %s"), alg.c_str());
     strcpy(self_ptr->buf[1], self_ptr->plev_buf);
     self_ptr->info[self_ptr->line++] = self_ptr->buf[1];