Description

When using the Set Array Elem and an empty Boolean array the results from a print string differ when testing an actors hidden value. It seems that this logic will always return true as it references some number somewhere in memory.

Steps to Reproduce

Screenshot of level Blueprint setup provided

 

  1. Place an actor into the level. (cube used in example)
  2. Open the level Blueprint and start by creating a reference to the actor. (cube)
  3. Connect the reference to a get actor hidden in game component.
  4. Use an begin play connected to a print string and connect the get hidden to that same print string.
  5. Next create an empty Boolean array (named state in example) and connect that to a set array elem component (check off size to fit).
  6. Use the print string from earlier and connect that to the set array elem as well.
  7. Connect the empty array (state) to a get array and connect that to a separate print string.
  8. Connect the set array elem to the second print string as well.

Results: the first print string will display false as expected but the second print string will display as true.

Desired effect: An error/warning message should appear when using a completely empty Boolean array with the set array elem.

Have Comments or More Details?

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

2
Login to Vote

Fixed
ComponentUE - Gameplay - Blueprint
Affects Versions4.17.24.18.34.19
Target Fix4.20
Fix Commit3950996
Main Commit3967553
Release Commit4095966
CreatedFeb 23, 2018
ResolvedMar 16, 2018
UpdatedMay 31, 2018