InitMenu in BeginScreen, not Init; fixes crashes on preload (when the screen
is loaded, no profile is selected)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user