diff options
author | HampusM <hampus@hampusmat.com> | 2024-03-29 14:20:21 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-03-29 14:20:21 +0100 |
commit | 61dfcf1ba2049bf0375821652e49b0e4c4147623 (patch) | |
tree | 3eaa2624523c893cb12b08595c4dd9e5250728c4 /ecs/src/actions.rs | |
parent | 96ba84e42c77147d297b358c944a48fee3785ae1 (diff) |
feat(ecs): make World unwind safe
Diffstat (limited to 'ecs/src/actions.rs')
-rw-r--r-- | ecs/src/actions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ecs/src/actions.rs b/ecs/src/actions.rs index edfee55..4507e71 100644 --- a/ecs/src/actions.rs +++ b/ecs/src/actions.rs @@ -19,7 +19,8 @@ impl<'world> Actions<'world> { self.world_data .action_queue - .borrow_mut() + .write_nonblock() + .expect("Failed to aquire read-write action queue lock") .push(Action::Spawn(components.into_vec())); } } |