json:fix数组重复加载的bug

This commit is contained in:
luying
2021-06-07 09:54:07 +08:00
parent fe73748cd7
commit c2436c85a8
17 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export interface DicPvpOpponent {
export const dicPvpOpponent = new Map<number, DicPvpOpponent>();
export function loadPvpOpponent() {
dicPvpOpponent.splice(0, dicPvpOpponent.length);
let arr = readFileAndParse(FILENAME.DIC_PVP_OPPONENT);
arr.forEach(o => {