mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-16 00:03:29 +00:00
Fix OOB index crash
This commit is contained in:
@@ -150,8 +150,10 @@ fn update_selection(
|
||||
},
|
||||
);
|
||||
|
||||
if hits.is_empty() && !is_multi {
|
||||
cmd.remove_resource::<Selection>();
|
||||
if hits.is_empty() {
|
||||
if !is_multi {
|
||||
cmd.remove_resource::<Selection>();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user