Michele Caini hace 8 años
padre
commit
3055da5316
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);