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.
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)
Head over to the existing Questions & Answers thread and let us know what's up.
7 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.15, 4.16 |
Created | Feb 24, 2017 |
---|---|
Resolved | Feb 28, 2017 |
Updated | Jul 14, 2021 |