From 588bda8a5e26aa97600b229524ec86dd0a04fca1 Mon Sep 17 00:00:00 2001 From: KJeff01 Date: Mon, 14 Aug 2023 21:32:41 -0500 Subject: [PATCH] Only attempt to play outro if user has videos to begin with --- src/wzapi.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wzapi.cpp b/src/wzapi.cpp index e07e098709e..802c5d61504 100644 --- a/src/wzapi.cpp +++ b/src/wzapi.cpp @@ -2378,8 +2378,11 @@ bool wzapi::gameOverMessage(WZAPI_PARAMS(bool gameWon, optional _showBackD if (gameWon && showOutro) { showBackDrop = false; - seq_AddSeqToList("outro.ogg", nullptr, "outro.txa", false); - seq_StartNextFullScreenVideo(); + if (seq_hasVideos()) + { + seq_AddSeqToList("outro.ogg", nullptr, "outro.txa", false); + seq_StartNextFullScreenVideo(); + } } else {