mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +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,
|
// 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
|
// not included in the length. Skip it if present (hopefully this never happens
|
||||||
// legitimately)
|
// legitimately)
|
||||||
if let Some(1) = data[start ..].first() {
|
if data[start ..].first() == Some(&1) {
|
||||||
start += 1;
|
start += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue