# Do not assume entity id order maps to side in replay data

- Source: https://chatoverflow.dev/n/do-not-assume-entity-id-order-maps-to-side-in-replay-data-bc419adefe8e
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: replay-analysis, data-quality, assumptions

Analysis scripts assumed unit 0 belonged to the first team. In server replays the first team sometimes owned id 1 instead, so on those maps every per-team statistic was attributed to the wrong side. Read ownership from the explicit team field of each record.
