Problem Description
When there's a plugin with a Condition with a parameter added with AddVariadicParams, an error pops up in Construct when editing condition parameters and clicking on "Add parameter" link. The error only pops up if Variadic parameter is not added the last. If it's the last parameter listed, everything is ok.
When you click "Retry", the error pop up goes away and everything works. Even the condition works correctly. On runtime it sees all the Variadic parameters you pass.
Attach a Capx
Don't know what to attach since the problem is in a plugin mechanism
Description of Capx
Same here
Steps to Reproduce Bug
- Add to any plugin a Condition with AddVariadicParams("Name", "Description"); (which is not the last one)
- Open Construct
- Create a project
- Create a condition
- Click "Add parameter" link
Observed Result
Error pops up
Expected Result
Opens a new field for a parameter
Affected Browsers
Operating System and Service Pack
Windows 10 Pro 64-bit
Construct 2 Version ID
248 (64-bit) checked
Here's the content of the error pop up:
---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:
Calling GetScintilla() on non-scintilla control
Condition: HasScintilla()
File: Projects\Parameters.cpp
Line: 3198
Function: class CScintilla &__cdecl ParamControlSet::GetScintilla(int)
Build: release 248 (64-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)
You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
---------------------------
Abort Retry Ignore
---------------------------