Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubpa committed Jun 5, 2020
1 parent 36dadba commit 445937a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions include/UECS/EntityLocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ namespace Ubpa {
const std::set<CmptType>& LatestCmptTypes() const noexcept { return latestCmptTypes; }
const std::set<CmptType>& CmptTypes() const noexcept { return cmptTypes; }

static const EntityLocator& InvalidInstance() noexcept {
static EntityLocator invalid_instance{ TypeList{}, TypeList{}, TypeList{} };
return invalid_instance;
}

bool operator==(const EntityLocator& locator) const noexcept;
private:
size_t GenHashCode() const noexcept;
Expand Down
2 changes: 1 addition & 1 deletion src/core/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void World::Update() {
if (!func->IsJob())
entityMngr.GenJob(job, func);
else
job->emplace([func = func]() { (*func)(Entity::Invalid(), size_t_invalid, &EntityLocator::InvalidInstance(), nullptr); });
job->emplace([func = func]() { (*func)(Entity::Invalid(), size_t_invalid, RTDCmptsView{ nullptr,nullptr }); });
table[func] = jobGraph.composed_of(*job);
}

Expand Down

0 comments on commit 445937a

Please sign in to comment.