From e65abee08d0cbe0f7adac84bfebbbd1aee3236ee Mon Sep 17 00:00:00 2001 From: John Bauer Date: Tue, 28 Nov 2006 05:44:42 +0000 Subject: [PATCH] Make Edit Course Mode somewhat functional again. --- stepmania/src/ScreenOptionsEditCourse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptionsEditCourse.cpp b/stepmania/src/ScreenOptionsEditCourse.cpp index 4dd6b6d4de..1fbd170f52 100644 --- a/stepmania/src/ScreenOptionsEditCourse.cpp +++ b/stepmania/src/ScreenOptionsEditCourse.cpp @@ -337,7 +337,8 @@ void ScreenOptionsEditCourse::ProcessMenuStart( const InputEventPlus &input ) void ScreenOptionsEditCourse::HandleMessage( const Message &msg ) { - if( msg == "EditCourseDifficultyChanged" ) + // We subscribe to messages before we initialize the options rows for the first time + if( msg == Message_EditCourseDifficultyChanged && m_pRows.size() > 0 ) { const vector vpns( 1, GAMESTATE->m_MasterPlayerNumber ); OptionRow &row = *m_pRows[EditCourseRow_Meter];