From f979d8474faa6b490255ee3435e93cce0e2211c3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 1 Jan 2004 01:33:34 +0000 Subject: [PATCH] fix proflie creation crash --- stepmania/src/ScreenProfileOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenProfileOptions.cpp b/stepmania/src/ScreenProfileOptions.cpp index c261243561..f19eb649ac 100644 --- a/stepmania/src/ScreenProfileOptions.cpp +++ b/stepmania/src/ScreenProfileOptions.cpp @@ -139,7 +139,7 @@ void ScreenProfileOptions::HandleScreenMessage( const ScreenMessage SM ) switch( SM ) { case SM_DoneCreating: - if( !ScreenTextEntry::s_bCancelledLast ) + if( !ScreenTextEntry::s_bCancelledLast && ScreenTextEntry::s_sLastAnswer != "" ) { CString sNewName = ScreenTextEntry::s_sLastAnswer; bool bResult = PROFILEMAN->CreateLocalProfile( sNewName );