Fix compile issue in CheatClassUI for release

This commit is contained in:
zilmar 2020-05-25 20:43:14 +09:30
parent 8dc26cc3eb
commit dbf63a7647
2 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,8 @@
CCheatsUI::CCheatsUI(void) : CCheatsUI::CCheatsUI(void) :
m_EditCheat(m_SelectCheat), m_EditCheat(m_SelectCheat),
m_SelectCheat(m_EditCheat) m_SelectCheat(m_EditCheat),
m_bModal(false)
{ {
} }
@ -30,6 +31,7 @@ void CCheatsUI::Display(HWND hParent, bool BlockExecution)
} }
if (BlockExecution) if (BlockExecution)
{ {
m_bModal = true;
DoModal(hParent); DoModal(hParent);
} }
else if (m_hWnd != NULL) else if (m_hWnd != NULL)
@ -38,6 +40,7 @@ void CCheatsUI::Display(HWND hParent, bool BlockExecution)
} }
else else
{ {
m_bModal = false;
Create(hParent); Create(hParent);
} }
} }

View File

@ -196,6 +196,7 @@ private:
CCheatList m_SelectCheat; CCheatList m_SelectCheat;
CButton m_StateBtn; CButton m_StateBtn;
int m_MinSizeDlg, m_MaxSizeDlg; int m_MinSizeDlg, m_MaxSizeDlg;
bool m_bModal;
enum Dialog_State { CONTRACTED, EXPANDED } m_DialogState; enum Dialog_State { CONTRACTED, EXPANDED } m_DialogState;
}; };