diff --git a/Engine/Node.cpp b/Engine/Node.cpp index 20fb20fd1d..34ad139a2f 100644 --- a/Engine/Node.cpp +++ b/Engine/Node.cpp @@ -521,8 +521,8 @@ Node::computeHash() isViewer->getActiveInputs(activeInput[0], activeInput[1]); for (int i = 0; i < 2; ++i) { - if ( (activeInput[i] >= 0) && _imp->inputs[i] ) { - _imp->hash.append( _imp->inputs[i]->getHashValue() ); + if ( (activeInput[i] >= 0) && _imp->inputs[activeInput[i]] ) { + _imp->hash.append( _imp->inputs[activeInput[i]]->getHashValue() ); } } } else {