1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

fix video crash with subtitles

This commit is contained in:
Laserlicht 2024-12-11 21:31:00 +01:00
parent 3d7178dcef
commit a29f455625

View File

@ -173,7 +173,7 @@ void VideoWidgetBase::tick(uint32_t msPassed)
{ {
videoInstance->tick(msPassed); videoInstance->tick(msPassed);
if(subTitle) if(!videoInstance->videoEnded() && subTitle)
subTitle->setText(getSubTitleLine(videoInstance->timeStamp())); subTitle->setText(getSubTitleLine(videoInstance->timeStamp()));
if(videoInstance->videoEnded()) if(videoInstance->videoEnded())