Rename rand_step to be more accurate

This commit is contained in:
Louis Pearson 2020-07-29 06:04:23 -06:00
parent 838d1efe5a
commit 43a3f5ae8e

View File

@ -263,8 +263,8 @@ impl SfxMgr {
.last() .last()
.expect("Failed to determine sound file for this trigger item."), .expect("Failed to determine sound file for this trigger item."),
_ => { _ => {
let rand_step = rand::random::<usize>() % item.files.len(); let rand_sound = rand::random::<usize>() % item.files.len();
&item.files[rand_step] &item.files[rand_sound]
}, },
}; };