Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygo-agent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Biluo Shen
ygo-agent
Commits
a1e6193c
Commit
a1e6193c
authored
May 11, 2024
by
sbl1996@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raise when idx==-1 for multi_select_2
parent
537b59fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ygoenv/ygoenv/ygopro/ygopro.h
ygoenv/ygoenv/ygopro/ygopro.h
+6
-0
No files found.
ygoenv/ygoenv/ygopro/ygopro.h
View file @
a1e6193c
...
...
@@ -1785,6 +1785,11 @@ public:
void _callback_multi_select_2(int idx) {
const auto &option = options_[idx];
idx = get_ms_spec_idx(option);
if (idx == -1) {
// TODO: find the root cause
fmt::println("options: {}, idx: {}, option: {}", options_, idx, option);
throw std::runtime_error("Spec not found");
}
ms_r_idxs_.push_back(idx);
std::vector<std::vector<int>> combs;
for (auto &c : ms_combs_) {
...
...
@@ -4319,6 +4324,7 @@ private:
}
};
} else if (msg_ == MSG_SELECT_OPTION) {
// TODO: add card information
auto player = read_u8();
auto size = read_u8();
if (verbose_) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment