Skip to content

Commit

Permalink
fix system_no_readonly example
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Apr 13, 2024
1 parent 5c1cd8c commit 05f97ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flecs_ecs/examples/system_no_readonly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() {
let world = World::new();

// Create query to find all waiters without a plate
let q_waiter = world
let mut q_waiter = world
.query::<&Waiter>()
.without_pair::<&Plate, flecs::Wildcard>()
.build();
Expand All @@ -44,7 +44,7 @@ fn main() {
let plate = it.entity(i);

// Find an available waiter
if let Some(waiter) = q_waiter.clone().first() {
if let Some(waiter) = q_waiter.first() {
// An available waiter was found, assign a plate to it so
// that the next plate will no longer find it.
// The defer_suspend function temporarily suspends deferring
Expand Down

0 comments on commit 05f97ba

Please sign in to comment.