[Minor Bug] [4.1.5] [Input Editor] Script List - Unhandled Exception

Minix

New member
//

Program version: 4.1.5 / 0x159

Program module: Input Editor

Module part: Script List

Bug severity: minor


//

Reproduction rate: 100% (so far)

//

How to reproduce:
  1. load simple movement scripts (from tutorial)
  2. set Game State to: MainGame
  3. select button on pad image (this case: Down button)
  4. Press - Hold - Release button: set to Hold
  5. add script(s) to list (this case: Start Moving Player Down)
  6. click on down arrow on left side of the list > exception

//

Exception text:

Code:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at MysticSearchesTool.InputEditorControl.buttonDown_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

//

Comment:

Seems to be a minor problem, You can avoid it just by not clicking on the arrow on the right side of the list. It would be also nice not to stumble upon that. The bug is probably not tied to any of the scripts, and it looks like it is a simple list index problem.

//

Screen:

https://imgur.com/6Nwvmse
 
Top Bottom