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
1 changed files with 2 additions and 2 deletions

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)
}
}