Michele Caini 4 лет назад
Родитель
Сommit
25c7436652
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      docs/md/entity.md

+ 2 - 2
docs/md/entity.md

@@ -1209,8 +1209,8 @@ them by copy if needed:
 ```cpp
 // create a copy of an entity component by component
 for(auto &&curr: registry.storage()) {
-    if(auto &storage = curr.second; storage.contains(entity)) {
-        storage.emplace(other, storage.get(entity));
+    if(auto &storage = curr.second; storage.contains(src)) {
+        storage.emplace(dst, storage.get(src));
     }
 }
 ```