json:fix数组重复加载的bug
This commit is contained in:
@@ -36,6 +36,7 @@ export const dicEvent = new Map<number, DicEvent>();
|
||||
export const dicEventList = new Array<DicEvent>();
|
||||
|
||||
export function loadEvent () {
|
||||
dicEventList.splice(0, dicEventList.length);
|
||||
let arr = readFileAndParse(FILENAME.DIC_EVENT);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
Reference in New Issue
Block a user