OSDN Git Service

Add new option -- show_ammo_detail / show_ammo_no_crit
[hengband/hengband.git] / src / object2.c
index 87dca61..d49ccf7 100644 (file)
@@ -1828,7 +1828,7 @@ void object_wipe(object_type *o_ptr)
 void object_copy(object_type *o_ptr, object_type *j_ptr)
 {
        /* Copy the structure */
-       COPY(o_ptr, j_ptr, object_type);
+       (void)COPY(o_ptr, j_ptr, object_type);
 }
 
 
@@ -8650,6 +8650,6 @@ void torch_lost_fuel(object_type *o_ptr)
        if ((o_ptr->tval == TV_LITE) && (o_ptr->sval == SV_LITE_TORCH))
        {
                o_ptr->xtra4 -= (FUEL_TORCH / 25);
-               if (o_ptr->xtra4 < 0) o_ptr->xtra4;
+               if (o_ptr->xtra4 < 0) o_ptr->xtra4 = 0;
        }
 }