diff --git a/src/qli/compile.cpp b/src/qli/compile.cpp index 037b0df544..3a6ee1bf07 100644 --- a/src/qli/compile.cpp +++ b/src/qli/compile.cpp @@ -180,7 +180,7 @@ bool CMP_node_match( const qli_nod* node1, const qli_nod* node2) return CMP_node_match(node1->nod_arg[e_stt_value], node2->nod_arg[e_stt_value]); case nod_function: - if (node1->nod_arg[e_fun_function] != node1->nod_arg[e_fun_function]) + if (node1->nod_arg[e_fun_function] != node2->nod_arg[e_fun_function]) return false; return CMP_node_match(node1->nod_arg[e_fun_args], node2->nod_arg[e_fun_args]); }