mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
player entity ids are off by 1
This commit is contained in:
parent
3ab0a1b325
commit
746176ceb5
1 changed files with 1 additions and 1 deletions
|
|
@ -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() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue