Skip to content

Commit

Permalink
fixed documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed May 19, 2018
1 parent 62a4478 commit f777526
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/entt/entity/snapshot.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class SnapshotLoader final {
archive(entity, instance);
static constexpr auto destroyed = false;
assure_fn(registry, entity, destroyed);
registry.template assign<Type>(args..., entity, instance);
registry.template assign<Type>(args..., entity, static_cast<const Type &>(instance));
}
}

Expand Down Expand Up @@ -507,7 +507,8 @@ class ContinuousLoader final {
*
* @tparam Component Type of component to restore.
* @tparam Archive Type of input archive.
* @tparam Type Types of members to update with their local counterparts.
* @tparam Type Types of components to update with local counterparts.
* @tparam Member Types of members to update with their local counterparts.
* @param archive A valid reference to an input archive.
* @param member Members to update with their local counterparts.
* @return A non-const reference to this loader.
Expand Down Expand Up @@ -537,7 +538,8 @@ class ContinuousLoader final {
*
* @tparam Tag Type of tag to restore.
* @tparam Archive Type of input archive.
* @tparam Type Types of members to update with their local counterparts.
* @tparam Type Types of components to update with local counterparts.
* @tparam Member Types of members to update with their local counterparts.
* @param archive A valid reference to an input archive.
* @param member Members to update with their local counterparts.
* @return A non-const reference to this loader.
Expand Down

0 comments on commit f777526

Please sign in to comment.