Files
UnrealEngineUWP/Engine/Source/Runtime/CoreUObject
Jamie Dale 2eb793f77f Improved consistency of how FScriptArrayHelper handles zero counts
The following functions would gracefully handle a count of zero:
 - EmptyAndAddValues
 - EmptyAndAddUninitializedValues

The following functions would assert if given a count of zero:
 - AddUninitializedValues
 - AddValues
 - InsertValues
 - RemoveValues
 - ClearValues

This change makes all of the above functions gracefully handle a count of zero, which addresses some editor crashes that could easily occur in user scripts when using unreal.Array in Python.

#fyi Malachi.Duncan
#rb Matt.Peters
#preflight 60f74556e885f20001b56003

[CL 16909007 by Jamie Dale in ue5-main branch]
2021-07-21 10:04:22 -04:00
..