move commit

This commit is contained in:
Corwin 2022-07-24 21:30:45 +01:00
parent cdba323b39
commit 29c74f6286

View file

@ -48,8 +48,8 @@ fn all_sprites(gfx: &ObjectController) {
for (i, obj) in objs.iter_mut().enumerate() {
let this_image = (image + i * SPRITES.len() / objs_len) % SPRITES.len();
obj.set_sprite(gfx.sprite(&SPRITES[this_image]));
gfx.commit();
}
gfx.commit();
}
}
}