Skip to content

example game_menu crashes with a query conflicts since resources as components #22897

@mockersf

Description

@mockersf

Bevy version and features

What you did

cargo run --example game_menu --features debug

What went wrong

thread 'main' (7330126) panicked at bevy/crates/bevy_ecs/src/system/system_param.rs:878:9:
error[B0002]: Res<game_menu::DisplayQuality> in system game_menu::menu::setting_button<game_menu::DisplayQuality> conflicts with a previous query. Consider removing the duplicate access. See: https://bevy.org/learn/errors/b0002
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_app::main_schedule::Main::run_main`!

Metadata

Metadata

Assignees

Labels

C-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examples

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions