Description

Enum to Byte conversion returns 2 for the first enum then 4 then 6 and so on rather than 0, 1, 2, etc.

This is a regression; does NOT occur in 4.8.3. Reproduced in 4.9.0 binary and Main (2675088)

Steps to Reproduce

1. Open any project
2. Create a new Enum
3. Add 3 new Enumerators
4. Create a new Actor Blueprint
5. Event Begin Play > Print String
6. Get the Literal Enum node for the new Enum
7. Off the return value, ToInt(byte) > ToString(int) > Print String
[Image Removed]
8. Drag the Actor BP into the level
9. PIE

Result:
The Enum to Byte conversion returns 2, rather than 0, for the first enumerator. Other enumerators from the list also return incorrectly; rather than 0, 1, 2, you'll get 2, 4, 6.

Expected;
Print: 0

Have Comments or More Details?

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

1
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.94.10
Target Fix4.9.1
Fix Commit2677252
Release Commit2685954
CreatedSep 1, 2015
ResolvedSep 2, 2015
UpdatedApr 27, 2018
View Jira Issue