Description

Unable to increment TMap value if Key is zero. Changing the TMap Key to 1 on Add will allow the Value of "Key 0" to be incremented.

User Description:

It seems as if the 'Find' node for the newly released TMap container does not return values by reference (Though I believe it is meant to).

I would imagine it is intended to be returned by reference (For obvious reasons), but if it was not intended that way, I would like to put this in as a feature request.

Steps to Reproduce

1. Open the attached test project (Screenshot 1 for BP setup reference)
2. PIE
3. Press the F-key to increment the value of key 0 (press multiple times)

Results: The value will not be incremented

Expected: To be able to increment the value in this way

Note: Changing the TMap Key to 1 on Add will allow the Value of "Key 0" to be incremented. (See screenshot 2)

Have Comments or More Details?

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

7
Login to Vote

Duplicate
ComponentUE - Gameplay
Affects Versions4.154.16
CreatedFeb 24, 2017
ResolvedFeb 28, 2017
UpdatedJul 14, 2021