fix compiler warning

This commit is contained in:
Gered 2022-07-20 18:27:54 -04:00
parent 9316f09e09
commit cf02471aa8

View file

@ -253,7 +253,7 @@ impl BlendMap {
let start_color = reader.read_u8()?;
let end_color = reader.read_u8()?;
let num_maps = (end_color as usize - start_color as usize + 1);
let num_maps = end_color as usize - start_color as usize + 1;
let mut maps = Vec::with_capacity(num_maps);
for _ in 0..num_maps {