shawenguan 1 rok temu
rodzic
commit
a4dbe1f819
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Scripts/168/pksExpertHelper.js

+ 3 - 0
Scripts/168/pksExpertHelper.js

@@ -91,6 +91,9 @@ async function tryPickExpert() {
 			tmpData.push([factor, item]);
 		}
 	}
+	if (tmpData.length == 0) {
+		return;
+	}
 	tmpData.sort((a, b) => {
 		if (a[0] == b[0]) {
 			return 0;