#76, fixed revealing the same script action after first time would causing param with extra data translated wrongly .

This commit is contained in:
Zero Fanker 2024-07-04 19:54:16 -04:00
parent 50f57e1675
commit 9a28ce5e27

View file

@ -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: