Michele Caini %!s(int64=7) %!d(string=hai) anos
pai
achega
0173060eaf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 
     // ...
 }