json:fix数组重复加载的bug
This commit is contained in:
@@ -14,6 +14,7 @@ export interface DicRankRewads {
|
||||
export const dicRankRewads = new Array<DicRankRewads>();
|
||||
export const dicRankMax: { max: DicRankRewads } = { max: undefined };
|
||||
export function loadPvpRankReward() {
|
||||
dicRankRewads.splice(0, dicRankRewads.length);
|
||||
let arr = readFileAndParse(FILENAME.DIC_PVP_RANK_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
|
||||
Reference in New Issue
Block a user