spatialos / gdk-for-unity

SpatialOS GDK for Unity
https://gdk.improbable.io/spatialos-gdk-unity
MIT License
355 stars 77 forks source link

Fix authority changes ordering problem #1465

Closed jamiebrynes7 closed 4 years ago

jamiebrynes7 commented 4 years ago

Description

Authority changes were stored in reverse order (newest to oldest, rather than oldest to newest). This meant that if you iterated through the MessageSpan<AuthorityChangeReceived> changes assuming it would be oldest to newest, the state could end up in correct.

This PR rectifies this issue by ensuring they are ordered in the way we receive them.

Tests

Documentation

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication