OSDN Git Service

[Refactor] #2124 Changed struct object_type to class ObjectType
[hengbandforosx/hengbandosx.git] / src / specific-object / chest.cpp
index 389f636..c180896 100644 (file)
@@ -61,11 +61,11 @@ void Chest::chest_death(bool scatter, POSITION y, POSITION x, OBJECT_IDX o_idx)
     bool small;
     BIT_FLAGS mode = AM_GOOD | AM_FORBID_CHEST;
 
-    object_type forge;
-    object_type *q_ptr;
+    ObjectType forge;
+    ObjectType *q_ptr;
 
     floor_type *floor_ptr = this->player_ptr->current_floor_ptr;
-    object_type *o_ptr = &floor_ptr->o_list[o_idx];
+    ObjectType *o_ptr = &floor_ptr->o_list[o_idx];
 
     /* Small chests often hold "gold" */
     small = (o_ptr->sval < SV_CHEST_MIN_LARGE);
@@ -157,7 +157,7 @@ void Chest::chest_trap(POSITION y, POSITION x, OBJECT_IDX o_idx)
 {
     int i;
 
-    object_type *o_ptr = &this->player_ptr->current_floor_ptr->o_list[o_idx];
+    ObjectType *o_ptr = &this->player_ptr->current_floor_ptr->o_list[o_idx];
 
     int mon_level = o_ptr->xtra3;