From 16d58dc0a46737ddb9047983d937cf142c1051e1 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Fri, 24 Jun 2011 01:09:37 -0400 Subject: [PATCH] Fix editor crash if you don't save a new chart. --- Docs/Changelog_sm5.txt | 2 ++ src/Player.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index a0ee45daed..28e8b704e0 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -15,6 +15,8 @@ StepMania 5.0 Preview 2 | 201106?? than one step in all stepstypes. This needs testing. [Wolfman2000] * [ScreenEdit] Add the option to convert delays to beats. Just find a better song to use this on besides Uprock. [Wolfman2000] +* [ScreenEdit] Fix a crash if you don't save any steps on a new song. + [Wolfman2000] 2011/06/19 ---------- diff --git a/src/Player.cpp b/src/Player.cpp index 0fc3e02522..0daaf083e7 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -960,8 +960,10 @@ void Player::Update( float fDeltaTime ) UpdateJudgedRows(); // Check for TapNote misses - UpdateTapNotesMissedOlderThan( GetMaxStepDistanceSeconds() ); - + if (!GAMESTATE->m_bInStepEditor) + { + UpdateTapNotesMissedOlderThan( GetMaxStepDistanceSeconds() ); + } // process transforms that are waiting to be applied ApplyWaitingTransforms(); }