OSDN Git Service

[feature] ソースファイルをC++に対応
[hengbandforosx/hengbandosx.git] / src / spell-kind / spells-curse-removal.c
index c64489c..f6d94c8 100644 (file)
@@ -19,7 +19,7 @@
 static int exe_curse_removal(player_type *creature_ptr, int all)
 {
     int cnt = 0;
-    for (inventory_slot_type i = INVEN_RARM; i < INVEN_TOTAL; i++) {
+    for (int i = INVEN_MAIN_HAND; i < INVEN_TOTAL; i++) {
         object_type *o_ptr = &creature_ptr->inventory_list[i];
         if (!o_ptr->k_idx)
             continue;
@@ -37,7 +37,7 @@ static int exe_curse_removal(player_type *creature_ptr, int all)
         o_ptr->feeling = FEEL_NONE;
 
         creature_ptr->update |= (PU_BONUS);
-        creature_ptr->window |= (PW_EQUIP);
+        creature_ptr->window_flags |= (PW_EQUIP);
         cnt++;
     }