Mercurial > touhou
changeset 648:3331eb7389b3
Fix AnmRunner instance in test (requires Prng).
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Thu, 08 Aug 2019 13:38:31 +0200 |
parents | 1520b559cacc |
children | 967627181a76 |
files | src/th06/anm0_vm.rs |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/th06/anm0_vm.rs +++ b/src/th06/anm0_vm.rs @@ -430,7 +430,8 @@ mod tests { assert_eq!(anm0.size, (256, 256)); assert_eq!(anm0.format, 5); let sprite = Rc::new(RefCell::new(Sprite::new(0., 0.))); - let mut anm_runner = AnmRunner::new(&anm0, 1, sprite.clone(), 0); + let prng = Rc::new(RefCell::new(Prng::new(0))); + let mut anm_runner = AnmRunner::new(&anm0, 1, sprite.clone(), Rc::downgrade(&prng), 0); for _ in 0..50 { anm_runner.run_frame(); }