# \[0.9-g06bdf79\] Canceling use of disinfectant removes all bites

**URL:** <https://discourse.cataclysmdda.org/t/0-9-g06bdf79-canceling-use-of-disinfectant-removes-all-bites/4159>\
**Category:** The Garage\
**Created:** [November 23, 2013, 2:01am UTC](https://discourse.cataclysmdda.org/t/0-9-g06bdf79-canceling-use-of-disinfectant-removes-all-bites/4159 "2013-11-23T02:01:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bothria](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@bothria](https://discourse.cataclysmdda.org/u/bothria)\
**Post date:** [November 23, 2013, 2:01am UTC](https://discourse.cataclysmdda.org/t/0-9-g06bdf79-canceling-use-of-disinfectant-removes-all-bites/4159/1 "2013-11-23T02:01:26Z")

</div>

Version 0.9-g06bdf79 curses.  
If you use disinfectant, and then cancel at the body part selection window, it will clean all bites without consuming a charge.  
Reverting 78fc325 (to 36e7fbf ) fixes it. The patch below also fixes it, but I haven’t tested to see if it breaks anything else, and I’m unfamiliar with the code.  
This is my first time reporting a bug, so sorry if I’ve missed anything.

[code]diff --git a/src/iuse.cpp b/src/iuse.cpp  
index ca5505d…281e4f6 100644  
— a/src/iuse.cpp  
+++ b/src/iuse.cpp  
@@ -425,6 +425,9 @@ static hp\_part use\_healing\_item(player \*p, item \*it, int normal\_power, int head\_  
if(p-\>activity.type != ACT\_FIRSTAID) {  
healed = body\_window(p, it, item\_name, normal\_bonus, head\_bonus,  
torso\_bonus, bleed, bite, infect, force);

- 

```
   if (healed == num_hp_parts) {

```

- 

```
     return healed;

```

- 

```
   }
 }
 // Brick healing if using a first aid kit for the first time.
 // TODO: Base check on something other than the name.

```

[/code]

---

<div class="post-metadata">

**Author:** ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)\
**Post date:** [November 23, 2013, 5:00am UTC](https://discourse.cataclysmdda.org/t/0-9-g06bdf79-canceling-use-of-disinfectant-removes-all-bites/4159/2 "2013-11-23T05:00:24Z")

</div>

Thanks for the report!

It’s been registered in our [issue](https://github.com/CleverRaven/Cataclysm-DDA/issues/4585) tracker.
