mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
StaticAllocationFailureNodes are not stored in the pool
This commit is contained in:
@@ -7,6 +7,11 @@ TreePool * TreePool::sharedPool() {
|
||||
}
|
||||
|
||||
TreeNode * TreePool::node(int identifier) const {
|
||||
if (identifier < 0) {
|
||||
int index = indexOfStaticNode(identifier);
|
||||
assert(index >= 0 && index < MaxNumberOfStaticNodes);
|
||||
return m_staticNodes[index];
|
||||
}
|
||||
assert(identifier >= 0 && identifier <= MaxNumberOfNodes);
|
||||
return m_nodeForIdentifier[identifier];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user