瀏覽代碼

Update README.md

Michele Caini 8 年之前
父節點
當前提交
045c42301e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -77,7 +77,7 @@ int main() {
     std::cout << "filtered component view" << std::endl;
 
     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();