diff --git a/src/protocols/quake/two.rs b/src/protocols/quake/two.rs index aadcf12..256a5ce 100644 --- a/src/protocols/quake/two.rs +++ b/src/protocols/quake/two.rs @@ -31,7 +31,7 @@ impl CommonPlayer for Player { fn name(&self) -> &str { &self.name } - fn score(&self) -> Option { Some(self.score.into()) } + fn score(&self) -> Option { Some(self.score.try_into().unwrap_or(0)) } } pub(crate) struct QuakeTwo;