Explorar o código

Update README.md

Michele Caini %!s(int64=8) %!d(string=hai) anos
pai
achega
045c42301e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -77,7 +77,7 @@ int main() {
     std::cout << "filtered component view" << std::endl;
     std::cout << "filtered component view" << std::endl;
 
 
     for(auto entity: ecs.view<Position>().exclude<Velocity>()) {
     for(auto entity: ecs.view<Position>().exclude<Velocity>()) {
-        std::cout << (registry.has<Position>(entity)) << "/" << (registry.has<Velocity>(entity)) << std::endl;
+        std::cout << (ecs.has<Position>(entity)) << "/" << (ecs.has<Velocity>(entity)) << std::endl;
     }
     }
 
 
     ecs.reset();
     ecs.reset();