File tree 1 file changed +4
-4
lines changed
crates/bevy_ecs/src/schedule
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1138,18 +1138,18 @@ impl ScheduleGraph {
1138
1138
ambiguous_with_flattened. add_edge ( lhs, rhs, ( ) ) ;
1139
1139
}
1140
1140
( NodeId :: Set ( _) , NodeId :: System ( _) ) => {
1141
- for & lhs_ in set_systems. get ( & lhs) . unwrap ( ) {
1141
+ for & lhs_ in set_systems. get ( & lhs) . unwrap_or ( & Vec :: new ( ) ) {
1142
1142
ambiguous_with_flattened. add_edge ( lhs_, rhs, ( ) ) ;
1143
1143
}
1144
1144
}
1145
1145
( NodeId :: System ( _) , NodeId :: Set ( _) ) => {
1146
- for & rhs_ in set_systems. get ( & rhs) . unwrap ( ) {
1146
+ for & rhs_ in set_systems. get ( & rhs) . unwrap_or ( & Vec :: new ( ) ) {
1147
1147
ambiguous_with_flattened. add_edge ( lhs, rhs_, ( ) ) ;
1148
1148
}
1149
1149
}
1150
1150
( NodeId :: Set ( _) , NodeId :: Set ( _) ) => {
1151
- for & lhs_ in set_systems. get ( & lhs) . unwrap ( ) {
1152
- for & rhs_ in set_systems. get ( & rhs) . unwrap ( ) {
1151
+ for & lhs_ in set_systems. get ( & lhs) . unwrap_or ( & Vec :: new ( ) ) {
1152
+ for & rhs_ in set_systems. get ( & rhs) . unwrap_or ( & vec ! [ ] ) {
1153
1153
ambiguous_with_flattened. add_edge ( lhs_, rhs_, ( ) ) ;
1154
1154
}
1155
1155
}
You can’t perform that action at this time.
0 commit comments