Fix world

This commit is contained in:
Hamcha 2020-09-30 17:19:10 +02:00
parent fa61ad59d7
commit 385542e1cb
Signed by: hamcha
GPG key ID: 41467804B19A3315

View file

@ -14,7 +14,7 @@ impl GameWorld {
GameWorld { world }
}
pub fn dispatcher(&self) -> specs::AsyncDispatcher<'static, &World> {
DispatcherBuilder::new().build_async(&self.world)
pub fn dispatcher(self) -> specs::AsyncDispatcher<'static, World> {
DispatcherBuilder::new().build_async(self.world)
}
}