Michele Caini 7 년 전
부모
커밋
0173060eaf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/entity.md

+ 1 - 1
docs/entity.md

@@ -1152,7 +1152,7 @@ for(auto entity: view) {
     auto &velocity = registry.get<velocity>(entity);
 
     // ... or multiple components at once
-    auto &[pos, vel] = view.get<position, velocity>(entity);
+    auto &[pos, vel] = registry.get<position, velocity>(entity);
 
     // ...
 }