Skip to content

Commit

Permalink
Fix warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuscu committed Aug 28, 2024
1 parent 5aeae2d commit 90cbc50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nodegraph/source/common/NodeGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ namespace l::nodegraph {
bool NodeGraphBase::RemoveSource(void* source) {
int32_t sourceRemoved = 0;
for (auto& it : mInputs) {
if (it.mInputType == InputType::INPUT_NODE && it.mInput.mInputNode == source ||
it.mInputType == InputType::INPUT_VALUE && it.mInput.mInputFloat == source) {
if ((it.mInputType == InputType::INPUT_NODE && it.mInput.mInputNode == source) ||
(it.mInputType == InputType::INPUT_VALUE && it.mInput.mInputFloat == source)) {
it.Reset();
sourceRemoved++;
}
Expand Down

0 comments on commit 90cbc50

Please sign in to comment.