Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ WindowLayout *Shell::getSaveLoadMenuLayout( void )
{

// if layout has not been created, create it now
if( m_saveLoadMenuLayout == NULL )
if( m_saveLoadMenuLayout == NULL && TheWindowManager != NULL )
m_saveLoadMenuLayout = TheWindowManager->winCreateLayout( AsciiString( "Menus/PopupSaveLoad.wnd" ) );

// sanity
Expand All @@ -858,7 +858,7 @@ WindowLayout *Shell::getPopupReplayLayout( void )
{

// if layout has not been created, create it now
if( m_popupReplayLayout == NULL )
if( m_popupReplayLayout == NULL && TheWindowManager != NULL )
m_popupReplayLayout = TheWindowManager->winCreateLayout( AsciiString( "Menus/PopupReplay.wnd" ) );

// sanity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,8 +848,8 @@ WindowLayout* Shell::getSaveLoadMenuLayout(void)
{

// if layout has not been created, create it now
if (m_saveLoadMenuLayout == NULL)
m_saveLoadMenuLayout = TheWindowManager->winCreateLayout(AsciiString("Menus/PopupSaveLoad.wnd"));
if( m_saveLoadMenuLayout == NULL && TheWindowManager != NULL )
m_saveLoadMenuLayout = TheWindowManager->winCreateLayout( AsciiString( "Menus/PopupSaveLoad.wnd" ) );

// sanity
DEBUG_ASSERTCRASH(m_saveLoadMenuLayout, ("Unable to create save/load menu layout"));
Expand All @@ -865,8 +865,8 @@ WindowLayout* Shell::getPopupReplayLayout(void)
{

// if layout has not been created, create it now
if (m_popupReplayLayout == NULL)
m_popupReplayLayout = TheWindowManager->winCreateLayout(AsciiString("Menus/PopupReplay.wnd"));
if( m_popupReplayLayout == NULL && TheWindowManager != NULL )
m_popupReplayLayout = TheWindowManager->winCreateLayout( AsciiString( "Menus/PopupReplay.wnd" ) );

// sanity
DEBUG_ASSERTCRASH(m_popupReplayLayout, ("Unable to create replay save menu layout"));
Expand Down
Loading