Description

Increment and decrement nodes return the incorrect value

User Description:

Getting the result of the Increment Macro seems to be incrementing the variable twice. Very confusing. Is this normal?

Steps to Reproduce

1. Open QA-Game
2. Create a new actor class bp & open it
3. In the Event Graph, create the bp from screenshot #01
4. Default value for all variables is 0
5. Right-click all of the variables and watch the values
6. Compile & save
7. Place the bp into the level
8. In the bp's Details panel > Input > Set [Auto Receive Input] to 'Player 0'
9. PIE
10. With the bp's viewport in view, toggle through 1, 2, 3, & 4

Results: The increment/decrement return value doesn't match what the variable is being set to

Expected: For the increment/decrement nodes to return the exact same value as what the variable is set to by reference

NOTE: Screenshot #02 shows the macro as it is now and Screenshot #03 shows a change that fixes the issue

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.84.9
Target Fix4.9
Fix Commit2597995
CreatedJun 23, 2015
ResolvedJun 23, 2015
UpdatedApr 27, 2018
View Jira Issue