4.15 TMap BUG

In 4.15,if you remove a key which in the middle of the TMap(Enum),and then use the Keys node to output the contained Enum will cause the removed position being set to default enum value and eliminate all the following enum values.

To clarify.just follow these steps to reproduce the issue:

  1. create a Enum with 4 values:(eg:A,B,C,D)
  2. in the levelBP,create a enum type variable and turn that into a TMap,after compiling the BP,add three values to that TMap(make sure the following removed enum shound be the middle one,and the third enum should not set to enum’s first entry)
  3. create nodes like the screenshot below:

  1. After PIE you will see it outputs:BA,but it should output:BD,since that only A has been removed,not D.(I think the problem is caused by the Keys node)

Thanks!

Hi ,

Thank you for the report. I was able to reproduce this behavior and have created JIRA UE-42547. Our developers will be investigating further. Follow that link to monitor the status of the report.

Cheers,

TJ