mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 18:24:05 +02:00
saytext2 fix
This commit is contained in:
parent
3ea59220c8
commit
70fe69db21
1 changed files with 4 additions and 2 deletions
|
|
@ -258,8 +258,10 @@ impl BitRead<'_, LittleEndian> for SayText2Message {
|
|||
let from = stream.read().or_else(handle_utf8_error)?;
|
||||
let text = stream.read().or_else(handle_utf8_error)?;
|
||||
|
||||
// always ends with 2 0 bytes?
|
||||
// ends with 2 0 bytes?
|
||||
if stream.bits_left() >= 16 {
|
||||
let _: u16 = stream.read()?;
|
||||
}
|
||||
(kind, Some(from), text)
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue