mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-17 19:56:38 -04:00
Fix: trigger deletion causing mismatched event & action deleted (#114)
* used copied 'triggerId' instead of reference, because it will be deleted and becomes invalid .
This commit is contained in:
parent
11c93c3b3b
commit
f7e3d96881
8 changed files with 15 additions and 1635 deletions
|
@ -659,9 +659,6 @@ void CFinalSunDlg::UpdateDialogs(BOOL bOnlyMissionControl, BOOL bNoRepos)
|
|||
if (m_Scripttypes.m_hWnd) {
|
||||
m_Scripttypes.UpdateDialog();
|
||||
}
|
||||
if (m_triggers.m_hWnd) {
|
||||
m_triggers.UpdateDialog();
|
||||
}
|
||||
if (m_triggereditor.m_hWnd) {
|
||||
m_triggereditor.UpdateDialog();
|
||||
}
|
||||
|
@ -2284,8 +2281,6 @@ void CFinalSunDlg::HideAllDialogs()
|
|||
m_taskforces.ShowWindow(SW_HIDE);
|
||||
if (m_teamtypes)
|
||||
m_teamtypes.ShowWindow(SW_HIDE);
|
||||
if (m_triggers)
|
||||
m_triggers.ShowWindow(SW_HIDE);
|
||||
}
|
||||
|
||||
void CFinalSunDlg::OnFileValidatemap()
|
||||
|
@ -2542,18 +2537,6 @@ void CFinalSunDlg::OnEditTeams()
|
|||
|
||||
void CFinalSunDlg::OnEditTriggers()
|
||||
{
|
||||
if (m_triggers.m_hWnd == NULL) {
|
||||
if (!m_triggers.Create(CTriggers::IDD, NULL)) {
|
||||
MessageBox(GetLanguageStringACP("Err_CreateErr"), "Error");
|
||||
}
|
||||
}
|
||||
|
||||
if (m_triggers.m_hWnd != NULL) {
|
||||
//m_triggers.UpdateStrings();
|
||||
m_triggers.UpdateDialog();
|
||||
m_triggers.ShowWindow(SW_SHOW);
|
||||
Sound(SOUND_POSITIVE);
|
||||
}
|
||||
}
|
||||
|
||||
void CFinalSunDlg::OnSetFocus(CWnd* pOldWnd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue