Skip to content

Commit

Permalink
Revert empty check in TT
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro committed Feb 16, 2024
1 parent 613a581 commit 56e0d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ class TranspositionEntry

public:
TranspositionEntry()
: m_type(gen_type(0, EntryType::EMPTY))
: m_hash(0), m_type(gen_type(0, EntryType::EMPTY))
{}

inline bool query(Age age, Hash hash, TranspositionEntry** entry)
{
*entry = this;
if (!empty() && hash == this->hash())
if (hash == this->hash())
{
// Bump up the age of this entry
m_type = gen_type(age, type());
Expand Down

0 comments on commit 56e0d3a

Please sign in to comment.