dixhuit / unitcrunch-issue-tracker

Issue tracker for UnitCrunch.
https://www.unitcrunch.com
5 stars 0 forks source link

Weapons are not cloning properly #110

Closed korzxd closed 3 weeks ago

korzxd commented 3 weeks ago

Describe the bug

I have 2 different weapons called A and B, if i clone A and click save it works, then when i clone B and click save it overwrites the A (clone) weapon i just created.

To Reproduce

Steps to reproduce the behavior:

  1. Import this profile Weapon clone bug.txt.
  2. Go to Manage Profiles
  3. Go into Edit mode for the Warboss profile.
  4. Clone the Big choppa weapon.
  5. Click Save.
  6. Clone the Power Klaw weapon.
  7. You can now see in the Background we have the weapon order.
    • Big choppa
    • Power klaw
    • Big choppa (clone)
    • Power klaw (clone)
  8. Change the attacks characteristic.
  9. Click Save.
  10. See result. The new weapon order is
    • Big choppa
    • Power klaw
    • Power klaw (clone) <- This has the changed attacks characteristic, confirming this is the weapon that was overwritten when clicking save.
    • Power klaw (clone)

This still happens even if you do not perform Step 9. This step is only taken to keep track of which weapon was overwritten.

Expected behavior

I would expect the Big choppa (clone) not to of been overwritten when clicking save.

dixhuit commented 3 weeks ago

Oh dear, thanks for the bug report. Will take a look ASAP.

dixhuit commented 3 weeks ago

Fixed in 0.65.6 (released).