fixed obviously wrong function

This function was written incorrectly and would almost always trigger an
infinite loop. It's now written correctly and achieves what's intended.
This commit is contained in:
itsmattkc
2019-11-19 22:25:04 +09:00
parent 84f77cd58d
commit 6693fc75a3
+2 -2
View File
@@ -41,10 +41,10 @@ Node* TakeNodeFromParentGraph(Node* n, QObject* new_parent = nullptr)
TrackOutput* TrackFromBlock(Block* b)
{
Block* next = b->next();
Block* next = b;
do {
next = b->next();
next = next->next();
} while (next != nullptr && next->type() != Block::kEnd);
// A little hacky, but this should either be a TrackOutput* or nullptr