fix: don't divide by 0 #1966

Merged
Sainan merged 1 commits from nan-fix into main 2025-05-03 17:24:09 -07:00

View File

@ -1449,7 +1449,11 @@ function getRandomMissionDrops(
}
}
rewardManifests = [job.rewards];
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
if (job.xpAmounts.length > 1) {
rotations = [RewardInfo.JobStage! % (job.xpAmounts.length - 1)];
} else {
rotations = [RewardInfo.JobStage!];
}
if (
RewardInfo.Q &&
(RewardInfo.JobStage === job.xpAmounts.length - 1 || job.isVault) &&