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()
.expect("Failed to determine sound file for this trigger item."),
_ => {
let rand_step = rand::random::<usize>() % item.files.len();
&item.files[rand_step]
let rand_sound = rand::random::<usize>() % item.files.len();
&item.files[rand_sound]
},
};