fix.临时修复关卡名识别错误时的崩溃问题

This commit is contained in:
MistEO
2022-05-19 11:23:13 +08:00
committed by GitHub
parent d4fa71dea6
commit 434e4e657d

View File

@@ -153,7 +153,9 @@ void asst::StageDropsTaskPlugin::drop_info_callback()
details["drops"] = json::array(std::move(drops_vec));
json::value& stage = details["stage"];
stage["stageCode"] = m_stage_code;
stage["stageId"] = Resrc.drops().get_stage_info(m_stage_code, m_stage_difficulty).stage_id;
if (!m_stage_code.empty()) {
stage["stageId"] = Resrc.drops().get_stage_info(m_stage_code, m_stage_difficulty).stage_id;
}
callback(AsstMsg::SubTaskExtraInfo, info);
m_cur_info_json = std::move(details);