From 84ab2b592f5611b22380ed52a3b42080c9c68487 Mon Sep 17 00:00:00 2001 From: Ivan Mogilko Date: Mon, 19 Feb 2024 05:17:30 +0300 Subject: [PATCH] Engine: fixed FLIC video not playing second time --- Engine/ac/global_video.cpp | 2 +- Engine/media/video/video.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/ac/global_video.cpp b/Engine/ac/global_video.cpp index 3511a1a4205..141b071eeac 100644 --- a/Engine/ac/global_video.cpp +++ b/Engine/ac/global_video.cpp @@ -78,7 +78,7 @@ void PlayFlic(int numb, int scr_flags) HError err = play_flc_video(numb, flags, skip); if (!err) - debug_script_warn("Failed to play FLIC %n: %s", numb, err->FullMessage().GetCStr()); + debug_script_warn("Failed to play FLIC %d: %s", numb, err->FullMessage().GetCStr()); } void PlayVideo(const char* name, int skip, int scr_flags) { diff --git a/Engine/media/video/video.cpp b/Engine/media/video/video.cpp index 03b41db50a2..dc8e3833bf1 100644 --- a/Engine/media/video/video.cpp +++ b/Engine/media/video/video.cpp @@ -296,6 +296,7 @@ HError FlicPlayer::OpenImpl(const AGS::Common::String &name, int& /*flags*/) void FlicPlayer::CloseImpl() { + close_fli(); if (_pf) pack_fclose(_pf); _pf = nullptr;