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);
     auto &velocity = registry.get<velocity>(entity);
 
 
     // ... or multiple components at once
     // ... or multiple components at once
-    auto &[pos, vel] = view.get<position, velocity>(entity);
+    auto &[pos, vel] = registry.get<position, velocity>(entity);
 
 
     // ...
     // ...
 }
 }