1
0
Fork 0
mirror of https://codeberg.org/demostf/parser.git synced 2026-06-03 18:24:05 +02:00

player entity ids are off by 1

This commit is contained in:
Robin Appelman 2021-07-11 17:10:02 +02:00
commit 746176ceb5

View file

@ -387,7 +387,7 @@ impl Analyser {
let steam_id: String = data.read()?;
match text
.map(|text| text.parse())
.map(|text| text.parse::<u32>().map(|id| (id + 1).into()))
.unwrap_or_else(|| Ok((user_id.0 as u32).into()))
{
Ok(entity_id) if !steam_id.is_empty() => {