Pathfinding performance improvements.

This commit is contained in:
JoelKatz
2013-04-09 19:42:57 -07:00
parent ab751ffb27
commit fd296b4411
11 changed files with 56 additions and 47 deletions

View File

@@ -124,8 +124,8 @@ SHAMapNode SHAMapNode::getChildNodeID(int m) const
int SHAMapNode::selectBranch(const uint256& hash) const
{ // Which branch would contain the specified hash
#ifdef DEBUG
if (mDepth == 64)
#ifdef PARANOID
if (mDepth >= 64)
{
assert(false);
return -1;