Skip to content

Commit

Permalink
Remove unnecessary mut
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Jan 7, 2024
1 parent 9af5345 commit 40b0c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ fn spawn_level(
level: Res<LevelHandle>,
asset_server: Res<AssetServer>,
tree: Res<ImageHandle>,
mut positios: ResMut<Assets<TreePosition>>,
positions: Res<Assets<TreePosition>>,
mut state: ResMut<NextState<AppState>>,
) {
if asset_server.get_recursive_dependency_load_state(&level.0)
== Some(RecursiveDependencyLoadState::Loaded)
{
for (_, position) in positios.iter() {
for (_, position) in positions.iter() {
commands.spawn(SpriteBundle {
transform: Transform::from_translation(Vec3::new(
position.x, position.y, position.z,
Expand Down

0 comments on commit 40b0c60

Please sign in to comment.