From 9a28ce5e27660e8b907ca7bb456943cfddeefe8e Mon Sep 17 00:00:00 2001 From: Zero Fanker Date: Thu, 4 Jul 2024 19:54:16 -0400 Subject: [PATCH] #76, fixed revealing the same script action after first time would causing param with extra data translated wrongly . --- MissionEditor/ScriptTypes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MissionEditor/ScriptTypes.cpp b/MissionEditor/ScriptTypes.cpp index 7ff4bbf..841eae2 100644 --- a/MissionEditor/ScriptTypes.cpp +++ b/MissionEditor/ScriptTypes.cpp @@ -935,10 +935,13 @@ void CScriptTypes::UpdateParams(int actionIndex, CString* paramNumStr) // " actionIndex = " + std::to_string(actionIndex) + // " paramType = " + std::to_string(paramType) //); + // This should be done always + updateExtraValue(paramType, paramNumStr); + + // only update dialog when action changes if (lastActionID == actionIndex) { return; } - updateExtraValue(paramType, paramNumStr); switch (paramType) { default: case PRM_None: