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

nodeNameLength (step 2)
This commit is contained in:
Émilie Feral
2020-05-27 12:21:01 +02:00
parent 41bb169edd
commit 705b1812f1

View File

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