added overlay (#54)

This commit is contained in:
itsmattkc
2018-06-24 23:38:56 -07:00
parent bcd590cb5d
commit 72ea276ae7
4 changed files with 40 additions and 50 deletions
+6 -5
View File
@@ -32,11 +32,12 @@ void Sequence::delete_clip(int i) {
// remove any potential link references to clip
for (int j=0;j<clip_count();j++) {
Clip* c = get_clip(j);
for (int k=0;k<c->linked.size();k++) {
if (c->linked[k] == clips[i]->id) {
// c->linked[k] = NULL;
c->linked.removeAt(k);
break;
if (c != NULL) {
for (int k=0;k<c->linked.size();k++) {
if (c->linked[k] == clips[i]->id) {
c->linked.removeAt(k);
break;
}
}
}
}