# Bug: Moving items using (m) causes the game to multiply the items in some cases

**URL:** https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032
**Category:** The Garage
**Created:** [March 5, 2021, 3:03pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032 "2021-03-05T15:03:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AcidAntOnAMinefield](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@AcidAntOnAMinefield](https://discourse.cataclysmdda.org/u/AcidAntOnAMinefield)
#### Post date: [March 5, 2021, 3:03pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/1 "2021-03-05T15:03:29Z")

</div>

Easy to replicate:

Build 11508  
Mods:

- Dark Days Ahead

- Disable NPC Needs

- Bionic Professions

- No Rail Stations

- No Fungal Monsters

- SpeedyDex

- Stats Through Kills

- Stats Through Skills

- Create a test world

- Spawn any item that has “multiples” under ( ) in front of the name (Ammo, some foods, some drugs, cotton sheet and other spare parts that work the same way)

- place them on the floor anywhere and open the “/” menu.

- use “m” to move an amount of them from one space to another, don’t move all of them.

The end result:

- if you have 10 aspirin and "m"ove 5 of them, you will notice that you will have created 5 extra aspirin and still have the original 10 in its original spot.

 ![](https://cdn.discordapp.com/attachments/708349639371259907/817411011355082782/unknown.png)

 ![](https://cdn.discordapp.com/attachments/708349639371259907/817411175561822228/unknown.png)

 ![](https://cdn.discordapp.com/attachments/708349639371259907/817411350942449664/unknown.png)

EDIT: added the required info which should’ve been added first.  
Also to make clear that it doesn’t work if you do it from [i] to [floor]. It works whether you do it from [floor] to [floor] or from any cupboard/locker/vehicle cargo space to another one.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [March 5, 2021, 3:47pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/2 "2021-03-05T15:47:48Z")

</div>

Can not verify.  
Tested in experimental build 0.E-b11501.

Please **always** add the necessary informations to bug reports:

- Version you’re playing on (don’t just state “latest”, as this changes fast).
- Mods you have running in that world.

---

<div class="post-metadata">

### Author: ![AcidAntOnAMinefield](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@AcidAntOnAMinefield](https://discourse.cataclysmdda.org/u/AcidAntOnAMinefield)
#### Post date: [March 5, 2021, 3:54pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/3 "2021-03-05T15:54:03Z")

</div>

Oops. Updated with the required info. Sorry about that.

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [March 5, 2021, 4:01pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/4 "2021-03-05T16:01:50Z")

</div>

I can reproduce it on `5960368a330aa325b582b4c45cd0a6a5f4888c19`  
Could you please [make a bug report](https://github.com/CleverRaven/Cataclysm-DDA/issues/new?assignees=&labels=&template=bug_report.md)?

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [March 5, 2021, 4:03pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/5 "2021-03-05T16:03:41Z")

</div>

Confirmed.  
Just tried it in experimental build b11511 and it’s still an issue.

A quick look through the recently merged pull requests turns up this one, which might be the reason for this (but I could be wrong, too):

> <https://github.com/CleverRaven/Cataclysm-DDA/pull/47796>

---

<div class="post-metadata">

### Author: ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)
#### Post date: [March 5, 2021, 4:23pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/6 "2021-03-05T16:23:03Z")

</div>

git bisect says it is.

```auto
2204d61ac158f261d576464c7537736bb3e26c8b is the first bad commit
commit 2204d61ac158f261d576464c7537736bb3e26c8b
Author: Jamuro-g <toenli.e@gmail.com>
Date: Sun Feb 28 16:10:18 2021 +0100

    fix crash when trying to move stolen items

 src/activity_actor.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

```

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [March 5, 2021, 4:23pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/7 "2021-03-05T16:23:56Z")

</div>

Well, I guess I’ve hit it spot on, in that case 😆 …

---

<div class="post-metadata">

### Author: ![AcidAntOnAMinefield](https://avatars.discourse-cdn.com/v4/letter/a/a4c791/32.png) [@AcidAntOnAMinefield](https://discourse.cataclysmdda.org/u/AcidAntOnAMinefield)
#### Post date: [March 5, 2021, 4:24pm UTC](https://discourse.cataclysmdda.org/t/bug-moving-items-using-m-causes-the-game-to-multiply-the-items-in-some-cases/26032/8 "2021-03-05T16:24:53Z")

</div>

Well, I’m glad that was found quickly. A bug report was just made, regardless 🙂
