From 5184f448d5e240b02e9fbcc21051fe8840f6ded4 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 21 Feb 2008 19:16:50 +0000 Subject: [PATCH] fix default naming --- stepmania/src/WorkoutManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/WorkoutManager.cpp b/stepmania/src/WorkoutManager.cpp index e835640bf5..464bc03071 100644 --- a/stepmania/src/WorkoutManager.cpp +++ b/stepmania/src/WorkoutManager.cpp @@ -62,12 +62,12 @@ void WorkoutManager::LoadDefaults( Workout &out ) for( int i=0; i<10000; i++ ) { out.m_sName = ssprintf("Workout %d", i+1); - bool bNameInUse = true; + bool bNameInUse = false; FOREACH_CONST( Workout*, m_vpAllWorkouts, p ) { - if( out.m_sName != (*p)->m_sName ) + if( out.m_sName == (*p)->m_sName ) { - bNameInUse = false; + bNameInUse = true; break; } }