mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Fix bug (last scene item potentially lost)
This commit is contained in:
parent
7414507587
commit
753959170b
|
@ -152,8 +152,10 @@ static inline void attach_sceneitem(struct obs_scene *parent,
|
|||
prev->next->prev = item;
|
||||
prev->next = item;
|
||||
} else {
|
||||
item->next = item->parent->first_item;
|
||||
item->parent->first_item = item;
|
||||
item->next = parent->first_item;
|
||||
if (parent->first_item)
|
||||
parent->first_item->prev = item;
|
||||
parent->first_item = item;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue