OSDN Git Service

[Fix] #include / enum class 不足部を修正。
[hengbandforosx/hengbandosx.git] / src / melee / melee-util.cpp
index a02cf86..caf06b2 100644 (file)
@@ -1,6 +1,7 @@
 #include "melee/melee-util.h"
 #include "floor/geometry.h"
 #include "grid/grid.h"
+#include "melee/melee-switcher.h"
 #include "monster-race/monster-race.h"
 #include "system/floor-type-definition.h"
 #include "system/monster-race-definition.h"
@@ -9,9 +10,9 @@
 #include "timed-effect/player-hallucination.h"
 #include "timed-effect/timed-effects.h"
 
-mam_type *initialize_mam_type(PlayerType *player_ptr, mam_type *mam_ptr, MONRACE_IDX m_idx, MONRACE_IDX t_idx)
+mam_type *initialize_mam_type(PlayerType *player_ptr, mam_type *mam_ptr, MONSTER_IDX m_idx, MONSTER_IDX t_idx)
 {
-    mam_ptr->attribute = 0;
+    mam_ptr->attribute = BlowEffectType::NONE;
     mam_ptr->m_idx = m_idx;
     mam_ptr->t_idx = t_idx;
     mam_ptr->m_ptr = &player_ptr->current_floor_ptr->m_list[m_idx];