Skip to content

Commit

Permalink
[fix] シナリオイベントを認識しない問題を修正
Browse files Browse the repository at this point in the history
RetrieveOptionだったのでRetrieveTitleに修正
  • Loading branch information
Cilda committed Apr 13, 2023
1 parent 633b847 commit eb0b142
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UmaUmaChecker/Uma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ std::shared_ptr<EventSource> Uma::GetScenarioEventByBottomOption(const cv::Mat&
text = GetTextFromImage(gray);
if (!text.empty()) {
ChangeCollectedText(text);
auto event = SkillLib.ScenarioEvent.RetrieveTitle(text);
auto event = SkillLib.ScenarioEvent.RetrieveOption(text);
if (event) return event;
}

Expand Down Expand Up @@ -846,7 +846,7 @@ std::shared_ptr<EventSource> Uma::GetScenarioEvent(const std::vector<std::wstrin
std::shared_ptr<EventSource> rvalue;

for (auto& text : text_list) {
auto ret = SkillLib.ScenarioEvent.RetrieveOption(text);
auto ret = SkillLib.ScenarioEvent.RetrieveTitle(text);
if (ret) {
double rate = CalcTextMatchRate(text, ret->Name);
if (rate > best_rate) {
Expand Down

0 comments on commit eb0b142

Please sign in to comment.