This commit is contained in:
aozhiwei 2022-09-21 17:26:24 +08:00
parent 8faaf30305
commit 049b75a767

View File

@ -70,12 +70,12 @@ class Fragment {
return;
}
const allocedFragments = new Map();
allocedFragments.set(0, new Map());
allocedFragments.set(1, new Map());
allocedFragments.set(PVP_TYPE, new Map());
allocedFragments.set(PVE_TYPE, new Map());
rows.forEach(
(element) => {
if (element['type'] == 0 ||
element['type'] == 1) {
if (element['type'] == PVP_TYPE ||
element['type'] == PVE_TYPE) {
const data = allocedFragments.get(element['type']);
if (data) {
const num = Math.max(0, element['alloc_num'] - element['fragment_num']);