Paul Gruenbacher 6 лет назад
Родитель
Сommit
e7521445e9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/md/entity.md

+ 1 - 1
docs/md/entity.md

@@ -765,7 +765,7 @@ the type identifiers and their opaque functions for stamping. As an example:
 ```
 ```
 template<typename Type>
 template<typename Type>
 void stamp(const entt::registry &from, const entt::entity src, entt::registry &to, const entt::entity dst) {
 void stamp(const entt::registry &from, const entt::entity src, entt::registry &to, const entt::entity dst) {
-    to.assign_or_replace<Type>(dst, from.get_or_assign<Type>(src));
+    to.assign_or_replace<Type>(dst, from.get<Type>(src));
 }
 }
 ```
 ```