Skip to content

Commit

Permalink
fix occasional crash on instantiating despawned nft
Browse files Browse the repository at this point in the history
  • Loading branch information
robtfm committed Nov 9, 2024
1 parent 9ea30ae commit 815dbdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn load_frame(
commands
.entity(ent)
.remove::<FrameLoading>()
.insert(FrameProcess(instance))
.try_insert(FrameProcess(instance))
.try_push_children(&[child]);
}
}
Expand Down Expand Up @@ -195,7 +195,7 @@ fn process_frame(
commands
.entity(spawned_ent)
.remove::<Handle<StandardMaterial>>()
.insert(new_mats.add(SceneMaterial {
.try_insert(new_mats.add(SceneMaterial {
base: mat.clone(),
extension: SceneBound::new(bounds.clone(), config.graphics.oob),
}));
Expand Down

0 comments on commit 815dbdc

Please sign in to comment.