TAStudio: access CurrentTasMovie before stopping it

fixes 4c39a81228

- closes #3973
This commit is contained in:
Morilli 2024-07-20 08:13:44 +02:00
parent 5fd3575c0f
commit cc1b9c5903
1 changed files with 2 additions and 1 deletions

View File

@ -106,9 +106,10 @@ namespace BizHawk.Client.EmuHawk
if (CurrentTasMovie != null)
{
bool loadRecent = Game.Hash == CurrentTasMovie.Hash && CurrentTasMovie.Filename == Settings.RecentTas.MostRecent;
TastudioStopMovie();
// try to load the most recent movie if it matches the currently loaded movie
if (Game.Hash == CurrentTasMovie.Hash && CurrentTasMovie.Filename == Settings.RecentTas.MostRecent)
if (loadRecent)
{
LoadMostRecentOrStartNew();
}