# 0.A SDL Stable - Disassembling Books

**URL:** https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730
**Category:** The Garage
**Created:** [April 4, 2014, 1:16pm UTC](https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730 "2014-04-04T13:16:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Julia](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@Julia](https://discourse.cataclysmdda.org/u/Julia)
#### Post date: [April 4, 2014, 1:16pm UTC](https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730/1 "2014-04-04T13:16:14Z")

</div>

Got a bug where I tried to disassemble the Sutras of Buddha while wielding it, and I got the debug message:

DEBUG: Tried to remove a item not in inventory (name: The Sutras of Buddha)  
Press Spacebar…

I still get the 80 pieces of paper on the ground below me as well as keeping the book in my hand. Infinite papers. I’m going to try to do it with another book when I have time and see if it does it for all of them

---

<div class="post-metadata">

### Author: ![LazyCat-rus](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@LazyCat-rus](https://discourse.cataclysmdda.org/u/LazyCat-rus)
#### Post date: [April 6, 2014, 11:19am UTC](https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730/2 "2014-04-06T11:19:46Z")

</div>

Only with this book?

Can you give us your savegame and version info?

---

<div class="post-metadata">

### Author: ![Sean\_Mirrsen](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@Sean\_Mirrsen](https://discourse.cataclysmdda.org/u/Sean_Mirrsen)
#### Post date: [April 6, 2014, 12:44pm UTC](https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730/3 "2014-04-06T12:44:06Z")

</div>

The inventory::remove\_item function uses a somewhat suspicious method of checking if the item to be removed matches the target.

```auto

```

Now, I do have trouble understanding pointers, but something there looks off to me.

---

<div class="post-metadata">

### Author: ![Slax](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/slax/32/5385_2.png) [@Slax](https://discourse.cataclysmdda.org/u/Slax)
#### Post date: [April 6, 2014, 1:34pm UTC](https://discourse.cataclysmdda.org/t/0-a-sdl-stable-disassembling-books/5730/4 "2014-04-06T13:34:13Z")

</div>

I’ve had it happen a few times. Disassembling held items tends to be the trigger.
