Search Issue Tracker

Fixed

Fixed in 1.0.X - Entities

Votes

0

Found in [Package]

1.0.X - Entities

Issue ID

ECSB-291

Regression

No

NativeList.Sort can alter values in a NativeList when a CompareTo method never returns 0

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the attached Project "NativeListTest" and load Scene "SampleScene"
2. Enter Play Mode
3. Observe the Errors thrown in the Console

Expected results: No Errors are thrown in the Console
Actual results: Errors indicating changes to a NativeList's values can be seen

Reproducible with: Entities 1.0.0-pre.65 (2022.2.17f1, 2023.1.0b14, 2023.2.0a12)
Could not test with: Entities 0.17.0-preview.42 (Errors are thrown in the Console)

Notes:
- The Errors indicate which element of the NativeList changed the value
- The Logs before the Error show the values of a NativeList before and after calling NativeList.Sort

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.