From fda36d349d33196f61e2ae55314b2acd6cf9c2be Mon Sep 17 00:00:00 2001 From: adelikat Date: Thu, 2 Oct 2014 23:50:50 +0000 Subject: [PATCH] a fix to the fix of last commit --- BizHawk.Client.Common/movie/tasproj/TasMovie.cs | 4 ++-- BizHawk.Client.Common/movie/tasproj/TasStateManager.cs | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs index 7d2c3d969c..39b059215b 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasMovie.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasMovie.cs @@ -326,9 +326,9 @@ namespace BizHawk.Client.Common public void ClearGreenzone() { - if (StateManager.StateCount > 0) + if (StateManager.Any()) { - StateManager.Clear(); + StateManager.ClearGreenzone(); Changes = true; } } diff --git a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs index 55bede9e8e..df5e05b3ce 100644 --- a/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs +++ b/BizHawk.Client.Common/movie/tasproj/TasStateManager.cs @@ -136,7 +136,14 @@ namespace BizHawk.Client.Common /// /// Clears all state information /// + /// public void Clear() + { + States.Clear(); + Used = 0; + } + + public void ClearGreenzone() { if (States.Any()) {