| 106 | } |
| 107 | |
| 108 | dtNode* dtNodePool::findNode(dtPolyRef id, unsigned char state) |
| 109 | { |
| 110 | unsigned int bucket = dtHashRef(id) & (m_hashSize-1); |
| 111 | dtNodeIndex i = m_first[bucket]; |
| 112 | while (i != DT_NULL_IDX) |
| 113 | { |
| 114 | if (m_nodes[i].id == id && m_nodes[i].state == state) |
| 115 | return &m_nodes[i]; |
| 116 | i = m_next[i]; |
| 117 | } |
| 118 | return 0; |
| 119 | } |
| 120 | |
| 121 | dtNode* dtNodePool::getNode(dtPolyRef id, unsigned char state) |
| 122 | { |
nothing calls this directly
no test coverage detected