Skip to content

Commit 710f249

Browse files
committed
Fix bug in lock update when deleting pins
1 parent 3044396 commit 710f249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ficsit-companion/src/app.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,7 +2344,7 @@ void App::RenderNodes()
23442344
}
23452345

23462346
// Update lock state
2347-
node->outs.at(0)->SetLocked(num_unlocked < node->ins.size());
2347+
node->outs.at(0)->SetLocked(num_unlocked == 0);
23482348
}
23492349
}
23502350
}
@@ -2524,7 +2524,7 @@ void App::RenderNodes()
25242524
}
25252525

25262526
// Update lock state
2527-
node->ins.at(0)->SetLocked(num_unlocked < node->outs.size());
2527+
node->ins.at(0)->SetLocked(num_unlocked == 0);
25282528
}
25292529
else // GameSplitter
25302530
{

0 commit comments

Comments
 (0)