InitMenu in BeginScreen, not Init; fixes crashes on preload (when the screen

is loaded, no profile is selected)
This commit is contained in:
Glenn Maynard
2005-08-14 00:54:21 +00:00
parent f03a983886
commit 30ef5d071e
2 changed files with 6 additions and 0 deletions
@@ -25,7 +25,10 @@ ScreenOptionsEditProfile::ScreenOptionsEditProfile( CString sName ) :
void ScreenOptionsEditProfile::Init()
{
ScreenOptions::Init();
}
void ScreenOptionsEditProfile::BeginScreen()
{
m_Original = *GAMESTATE->GetEditLocalProfile();
vector<OptionRowDefinition> vDefs;
@@ -53,6 +56,8 @@ void ScreenOptionsEditProfile::Init()
}
InitMenu( vDefs, vHands );
ScreenOptions::BeginScreen();
}
ScreenOptionsEditProfile::~ScreenOptionsEditProfile()
+1
View File
@@ -11,6 +11,7 @@ public:
virtual ~ScreenOptionsEditProfile();
virtual void Init();
virtual void BeginScreen();
protected:
private: