Files
UnrealEngineUWP/Engine/Source/Runtime/CoreUObject/Public/UObject
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
..
2021-06-22 12:50:20 -04:00
2021-04-21 12:38:24 -04:00
2021-03-30 10:01:48 -04:00
2021-06-11 13:49:31 -04:00
2021-04-29 19:32:06 -04:00
2021-04-14 05:14:13 -04:00
2021-06-14 08:51:02 -04:00