OSDN Git Service

[Refactor] #2776 ItemEntity::tval/sval をBaseitemKey::bi_key として再定義した
[hengbandforosx/hengbandosx.git] / src / specific-object / monster-ball.cpp
index 2c5bf56..be156c3 100644 (file)
@@ -186,7 +186,7 @@ static void check_monster_ball_use(PlayerType *player_ptr, ae_type *ae_ptr)
 
 bool exe_monster_capture(PlayerType *player_ptr, ae_type *ae_ptr)
 {
-    if (ae_ptr->o_ptr->tval != ItemKindType::CAPTURE) {
+    if (ae_ptr->o_ptr->bi_key.tval() != ItemKindType::CAPTURE) {
         return false;
     }