Browse Source

Fixed ValueForKey issue with TPtrMap.

woollybah 10 years ago
parent
commit
f2866cc47d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      map.mod/map.c

+ 2 - 2
map.mod/map.c

@@ -190,12 +190,12 @@ BBObject * bmx_map_ptrmap_valueforkey(void * key, struct tree_root ** root) {
 	struct ptrmap_node node;
 	struct ptrmap_node node;
 	node.key = key;
 	node.key = key;
 	
 	
-	struct ptrmap_node * found = (struct ptrmap_node *)tree_map(&node.link, compare_ptrmap_nodes, root);
+	struct ptrmap_node * found = (struct ptrmap_node *) tree_search(&node, compare_ptrmap_nodes, *root);
 	
 	
 	if (found) {
 	if (found) {
 		return found->value;
 		return found->value;
 	}
 	}
-	
+
 	return &bbNullObject;
 	return &bbNullObject;
 }
 }