TAStudio macros: fix regression from commit 5bbdf2a caused by bad order of operations (remove ?? operator entirely since we have already checked that the values exist)

This commit is contained in:
SuuperW 2021-01-16 10:05:12 -06:00
parent dda09dd713
commit 97e4d42b7b
1 changed files with 2 additions and 2 deletions

View File

@ -242,8 +242,8 @@ namespace BizHawk.Client.EmuHawk
Emulator,
Tools,
MovieSession,
TasView.FirstSelectedIndex ?? 0,
TasView.LastSelectedIndex ?? 0 - TasView.FirstSelectedIndex ?? 0 + 1)
TasView.FirstSelectedIndex.Value,
TasView.LastSelectedIndex.Value - TasView.FirstSelectedIndex.Value + 1)
.Save(file.FullName);
Config.RecentMacros.Add(file.FullName);