[apps/code] VariableBoxController: fix NodeNameCompare when nameLength >

nodeNameLength
This commit is contained in:
Émilie Feral
2020-05-26 16:16:24 +02:00
parent 2b53ea748d
commit d82e6de6e8

View File

@@ -269,7 +269,7 @@ int VariableBoxController::NodeNameCompare(ScriptNode * node, const char * name,
if (strictlyStartsWith != nullptr && nodeNameLengthStartsWithName) {
*strictlyStartsWith = true;
}
return nodeNameLengthStartsWithName ? *(nodeName + nameLength) : - *(nodeName + nodeNameLength) ;
return nodeNameLengthStartsWithName ? *(nodeName + nameLength) : - *(name + nameLength) ;
}
int VariableBoxController::nodesCountForOrigin(NodeOrigin origin) const {