diff --git a/src/core/PatternStore.cpp b/src/core/PatternStore.cpp index 5b150b07217..121b50e990c 100644 --- a/src/core/PatternStore.cpp +++ b/src/core/PatternStore.cpp @@ -84,7 +84,7 @@ void PatternStore::updateAfterTrackAdd(Track* track) Engine::getSong()->addPatternTrack(); } - track->createClipsForPattern(Engine::patternStore()->numOfPatterns() - 1); + track->createClipsForPattern(numOfPatterns() - 1); } void PatternStore::updateAfterClipAdd(Track* track, Clip* clip)