Description

Removing a key from a Enum Map variable causes duplicate keys to remain. It doesn't seem to happen if the removed key is the first and last key, but only with the middle keys.

For example:

A (Removes correctly)
B (Removes and leaves duplicates)
C (Removes correctly)

A (Removes correctly)
B (Removes and leaves duplicates)
C (Removes and leaves duplicates)
D (Removes and leaves duplicates)
E (Removes correctly)

Steps to Reproduce

1. Open the attached test project
2. PIE (Removes the key on event begin play)
3. Press the F-key to Print the remaining keys

Results: When a middle key is removed, the keys that are left will contain duplicates

Expected: For it to remove the key specified and all other keys are untouched

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

3
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.15
Target Fix4.15.2
Fix Commit3352685
Main Commit3358685
CreatedMar 3, 2017
ResolvedMar 17, 2017
UpdatedApr 27, 2018
View Jira Issue