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