diff --git a/src/algo/AVL.js b/src/algo/AVL.js index 0ab4993..c5b799d 100644 --- a/src/algo/AVL.js +++ b/src/algo/AVL.js @@ -306,7 +306,7 @@ export default class AVL extends Algorithm { this.cmd(act.setHighlight, tree.graphicID, 0); } else { // if (tree.data > value) { - if (this.compare(tree.data, value)) { + if (this.compare(tree.data, value) > 0) { this.cmd( act.setText, 0,