diff --git a/BizHawk.Emulation.Common/Base Implementations/ControllerDefinition.cs b/BizHawk.Emulation.Common/Base Implementations/ControllerDefinition.cs index 5e3b198733..e5d70240d2 100644 --- a/BizHawk.Emulation.Common/Base Implementations/ControllerDefinition.cs +++ b/BizHawk.Emulation.Common/Base Implementations/ControllerDefinition.cs @@ -122,7 +122,7 @@ namespace BizHawk.Emulation.Common for (int i = 0; i < list.Count; i++) { int player = 0; - if (list[i].StartsWith("P") && char.IsNumber(list[i][1])) + if (list[i].Length > 3 && list[i].StartsWith("P") && char.IsNumber(list[i][1])) player = int.Parse(list[i][1].ToString()); ret[player].Add(list[i]); }