diff --git a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs index 11cd9fb289..66431a6905 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs @@ -212,7 +212,7 @@ namespace BizHawk.Client.Common private void MaybeRemoveStates() { // Loop, because removing a state that has a duplicate won't save any space - while (Used > Settings.Cap || DiskUsed > (ulong)Settings.DiskCapacitymb * 1024 * 1024) + while (Used + _expectedStateSize > Settings.Cap || DiskUsed > (ulong)Settings.DiskCapacitymb * 1024 * 1024) { Point shouldRemove = StateToRemove(); RemoveState(shouldRemove.X, shouldRemove.Y);