Michele Caini 8 anos atrás
pai
commit
3055da5316
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -37,7 +37,7 @@ struct Velocity {
 };
 
 void update(entt::DefaultRegistry &registry) {
-    auto view = ecs.view<Position, Velocity>();
+    auto view = registry.view<Position, Velocity>();
 
     for(auto entity: view) {
         auto &position = view.get<Position>(entity);