Skip to content

Commit

Permalink
fix null reference crash
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Aug 27, 2024
1 parent d264980 commit 408bc44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion move-transition.c
Original file line number Diff line number Diff line change
Expand Up @@ -2601,7 +2601,9 @@ static void move_start_init(struct move_info *move, bool in_graphics)

if (move->scene_flip_horizontal || move->scene_flip_vertical) {
obs_sceneitem_t *other_sceneitem = NULL;
if (scene_flip_item->item_a == scene_flip_sceneitem) {
if (!scene_flip_item) {

} else if (scene_flip_item->item_a == scene_flip_sceneitem) {
other_sceneitem = scene_flip_item->item_b;
} else if (scene_flip_item->item_b == scene_flip_sceneitem) {
other_sceneitem = scene_flip_item->item_a;
Expand Down

0 comments on commit 408bc44

Please sign in to comment.