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)
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
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
UMG RichText not appear image when packaged
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
How to delete some elements correctly when deleting an array loop?
Head over to the existing Questions & Answers thread and let us know what's up.
3 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.15 |
Target Fix | 4.15.2 |
Fix Commit | 3352685 |
---|---|
Main Commit | 3358685 |
Created | Mar 3, 2017 |
---|---|
Resolved | Mar 17, 2017 |
Updated | Apr 27, 2018 |