mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
fix: 修复超出生成任务上限时访问越界的问题,增加生成任务上限至 10000
是半年前的憨憨 zzyyyl 写的!
link to 9ff4c30b08
This commit is contained in:
@@ -188,8 +188,8 @@ bool asst::TaskData::parse(const json::value& json)
|
||||
checking_task_set.insert(name);
|
||||
}
|
||||
|
||||
const size_t MAX_CHECKING_SIZE = 3000;
|
||||
while (!task_queue.empty() || checking_task_set.size() > MAX_CHECKING_SIZE) {
|
||||
const size_t MAX_CHECKING_SIZE = 10000;
|
||||
while (!task_queue.empty() && checking_task_set.size() <= MAX_CHECKING_SIZE) {
|
||||
std::string_view name = task_queue.front();
|
||||
task_queue.pop();
|
||||
auto task = get(name); // 这里会提前展开任务
|
||||
|
||||
Reference in New Issue
Block a user