From f2150618d4a70e7fa9e36309b93c918e30cae695 Mon Sep 17 00:00:00 2001 From: handama <55939089+handama@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:20:03 +0800 Subject: [PATCH] Fixed event parameter type judgement (#117) ref: https://modenc.renegadeprojects.com/Events/RA2YR --- MissionEditor/TriggerEventsDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MissionEditor/TriggerEventsDlg.cpp b/MissionEditor/TriggerEventsDlg.cpp index 554039e..a5d6526 100644 --- a/MissionEditor/TriggerEventsDlg.cpp +++ b/MissionEditor/TriggerEventsDlg.cpp @@ -437,7 +437,7 @@ void CTriggerEventsDlg::OnSelchangeParameter() CString Param1 = GetParam(g_data["EventsRA2"][GetParam(EventData, startpos)], 1); CString Code = GetParam(g_data["ParamTypes"][Param1], 2); //MessageBox(Param1, Code); - if (atoi(Code) != 0) curparam--; + if (atoi(Code) == 2) curparam--; #endif // END FIx