mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-24 02:38:15 -05:00
Fix ternary null input
Having a ternary result in null creates a new param of []{ null },
instead of a true null.
This commit is contained in:
@@ -450,7 +450,7 @@ internal static List<cbItem> getCBList(string textfile, string lang)
|
||||
internal static List<cbItem> getCBList(string[] inStrings, params int[][] allowed)
|
||||
{
|
||||
List<cbItem> cbList = new List<cbItem>();
|
||||
if (allowed == null)
|
||||
if (allowed == null || allowed.First() == null)
|
||||
allowed = new[] { Enumerable.Range(0, inStrings.Length).ToArray() };
|
||||
|
||||
foreach (int[] list in allowed)
|
||||
|
||||
Reference in New Issue
Block a user