From 5926618f8cbc9a3ea9e690a7b73146a34f29c4a9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 19 Apr 2005 03:31:06 +0000 Subject: [PATCH] fix warning --- stepmania/src/OptionRowHandler.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/stepmania/src/OptionRowHandler.cpp b/stepmania/src/OptionRowHandler.cpp index 58b5700882..e2c5d05d32 100644 --- a/stepmania/src/OptionRowHandler.cpp +++ b/stepmania/src/OptionRowHandler.cpp @@ -201,16 +201,14 @@ public: } } - if( UseFallbackOption && FallbackOption == -1 ) + if( def.selectType == SELECT_ONE && UseFallbackOption ) { - LOG->Warn( "No options in row \"%s\" were selected, and no fallback row found; selected entry 0", m_sName.c_str() ); - FallbackOption = 0; - } + if( FallbackOption == -1 ) + { + LOG->Warn( "No options in row \"%s\" were selected, and no fallback row found; selected entry 0", m_sName.c_str() ); + FallbackOption = 0; + } - if( def.selectType == SELECT_ONE && - UseFallbackOption && - FallbackOption != -1 ) - { SelectExactlyOne( FallbackOption, vbSelOut ); } }