Skip to content

Commit

Permalink
fix(collisions): remove cursed function return
Browse files Browse the repository at this point in the history
  • Loading branch information
luishfonseca committed Nov 12, 2023
1 parent b5e3e9b commit eb22748
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@

using namespace cubos::engine;

using Candidate = BroadPhaseCandidates::Candidate;
using CandidateHash = BroadPhaseCandidates::CandidateHash;

void BroadPhaseCandidates::addCandidate(CollisionType type, Candidate candidate)
{
candidatesPerType[static_cast<std::size_t>(type)].insert(candidate);
}

auto BroadPhaseCandidates::candidates(CollisionType type) const -> const std::unordered_set<Candidate, CandidateHash>&
const std::unordered_set<Candidate, CandidateHash>& BroadPhaseCandidates::candidates(CollisionType type) const
{
return candidatesPerType[static_cast<std::size_t>(type)];
}
Expand Down

0 comments on commit eb22748

Please sign in to comment.