Skip to content

Commit

Permalink
fixing variable name typos in registry.hpp and view.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisSestier committed Aug 1, 2021
1 parent fe94976 commit 301f416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/antity/core/registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace ant {

template <typename C>
void registry::remove(entity_t e) {
const Record record = entity_index->at(e);
const Record record = entity_index_->at(e);

archetype* oldarchetype = record.entity_archetype;
archetype* newarchetype = nullptr;
Expand All @@ -193,7 +193,7 @@ namespace ant {
const auto oldIndex = record.index;
const auto Lastentity_index = oldarchetype->entities.size() - 1;
if (newarchetype_id.size() != 0) {
newarchetype = archetype_map.get(
newarchetype = archetype_map_.get(
archetype_key{newarchetype_id, oldarchetype->chunk_id});
entity_index_->at(e).archetype = newarchetype;
entity_index_->at(e).index = newarchetype->entities.size();
Expand Down
4 changes: 2 additions & 2 deletions include/antity/core/view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ namespace ant {
chunk_id_t chunk_id = _null_chunk) {
multi_archetype_view<Cs...> multiarchetypeView;
for (auto&& archetype : *archetype_map->get()) {
if (!std::ranges::includes(archetype.second->archetype_id_t.begin(),
archetype.second->archetype_id_t.end(),
if (!std::ranges::includes(archetype.second->archetype_id.begin(),
archetype.second->archetype_id.end(),
archetype_id_t.begin(),
archetype_id_t.end())) {
continue;
Expand Down

0 comments on commit 301f416

Please sign in to comment.