Skip to content

Commit

Permalink
fix: missing break
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Jul 24, 2023
1 parent 0e203c9 commit 5727888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/Task/PipelineTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,13 @@ cv::Rect PipelineTask::get_target_rect(const MAA_PIPELINE_RES_NS::Action::Target
switch (target.type) {
case Target::Type::Self:
raw = cur_box;
break;
case Target::Type::PreTask:
raw = status()->get_pipeline_rec_cache(std::get<std::string>(target.param));
break;
case Target::Type::Region:
raw = std::get<cv::Rect>(target.param);
break;
default:
LogError << "Unknown target" << VAR(static_cast<int>(target.type));
return {};
Expand Down

0 comments on commit 5727888

Please sign in to comment.