Skip to content

Commit

Permalink
Update EntityMngr.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubpa committed May 18, 2021
1 parent b98fa1c commit 8973492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/EntityMngr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CmptAccessPtr EntityMngr::GetComponent(Entity e, AccessTypeID type) const {
}

bool EntityMngr::Exist(Entity e) const noexcept {
return e.index < entityTable.size() && e.version == entityTable[e.index].version;
return e.index < entityTable.size() && e.version == entityTable[e.index].version && entityTable[e.index].archetype;
}

std::size_t EntityMngr::RequestEntityFreeEntry() {
Expand Down

0 comments on commit 8973492

Please sign in to comment.