Skip to content

Commit

Permalink
bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Mar 1, 2018
1 parent 6337226 commit 6661a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entt/entity/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1147,9 +1147,9 @@ class Registry {
*/
Snapshot<Entity> snapshot() {
using func_type = entity_type(*)(Registry &, entity_type);
const auto seed = available ? (next | (entities[next] & ~traits_type::entity_mask)) : next;
const entity_type seed = available ? (next | (entities[next] & ~traits_type::entity_mask)) : next;

func_type follow = [](Registry &registry, entity_type entity) {
func_type follow = [](Registry &registry, entity_type entity) -> entity_type {
const auto &entities = registry.entities;
const auto entt = entity & traits_type::entity_mask;
const auto next = entities[entt] & traits_type::entity_mask;
Expand Down

0 comments on commit 6661a5e

Please sign in to comment.