mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
refactor: 重构肉鸽资源加载逻辑和任务流程
This commit is contained in:
@@ -60,14 +60,18 @@ bool asst::TaskData::parse(const json::value& json)
|
||||
}
|
||||
|
||||
#ifdef ASST_DEBUG
|
||||
bool some_next_null = false;
|
||||
for (const auto& [name, task] : m_all_tasks_info) {
|
||||
for (const auto& next : task->next) {
|
||||
if (get(next) == nullptr) {
|
||||
Log.error(name, "'s next", next, "is null");
|
||||
return false;
|
||||
some_next_null = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (some_next_null) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user