]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - src/btree.cpp
Selección visual del nodo actual.
[z.facultad/75.52/treemulator.git] / src / btree.cpp
index 48f4937a1952e23b662645e9251f7c0cd4bfeb71..225d0435eddefa9aa97ffd98219aa8590cb8506c 100644 (file)
@@ -381,7 +381,7 @@ uchar *BTree::NewBlock (uint &num)
        nh.free_space = header.block_size - sizeof (BTreeNodeHeader);
        nh.item_count = 0;
        WriteNodoHeader (node, &nh);
-       WriteBlock (node, 0);
+       WriteBlock (node, num);
 
        return node;
 }