Skip to content

Commit

Permalink
Fix Un-Renamed add_resource Compile Error (#1357)
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag authored Jan 30, 2021
1 parent 6f5a4d9 commit bff44f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_app/src/app_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl AppBuilder {
// so we would need to be extremely certain this is correct
if !self.resources().contains::<R>() {
let resource = R::from_resources(&self.resources());
self.add_resource(resource);
self.insert_resource(resource);
}

self
Expand Down

0 comments on commit bff44f7

Please sign in to comment.