From 408bc442d1ec57c0ceeaaeca816481a6b937ce48 Mon Sep 17 00:00:00 2001 From: Exeldro Date: Tue, 27 Aug 2024 18:56:44 +0200 Subject: [PATCH] fix null reference crash --- move-transition.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/move-transition.c b/move-transition.c index ee440f2..7cd7f76 100644 --- a/move-transition.c +++ b/move-transition.c @@ -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;