mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-06 07:17:27 +00:00
chore: simplify condition to use equals operator
This commit is contained in:
parent
f746fad157
commit
0aa498b30b
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ impl StringDecoder for Unreal2StringDecoder {
|
|||
// For UCS-2 strings, some unreal 2 games randomly insert an extra 0x01 here,
|
||||
// not included in the length. Skip it if present (hopefully this never happens
|
||||
// legitimately)
|
||||
if let Some(1) = data[start ..].first() {
|
||||
if data[start ..].first() == Some(&1) {
|
||||
start += 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue