소스 검색

fixed typo

Michele Caini 9 년 전
부모
커밋
3055da5316
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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);