Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
cca6e870
Commit
cca6e870
authored
Dec 06, 2023
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update std container erase
parent
670de59f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
operations.cpp
operations.cpp
+2
-2
processor.cpp
processor.cpp
+3
-3
No files found.
operations.cpp
View file @
cca6e870
...
...
@@ -204,7 +204,7 @@ void field::destroy(card_set* targets, effect* reason_effect, uint32 reason, uin
for
(
auto
cit
=
targets
->
begin
();
cit
!=
targets
->
end
();)
{
card
*
pcard
=
*
cit
;
if
(
pcard
->
is_status
(
STATUS_DESTROY_CONFIRMED
)
&&
core
.
destroy_canceled
.
find
(
pcard
)
==
core
.
destroy_canceled
.
end
())
{
targets
->
erase
(
cit
++
);
cit
=
targets
->
erase
(
cit
);
continue
;
}
pcard
->
temp
.
reason
=
pcard
->
current
.
reason
;
...
...
@@ -3597,7 +3597,7 @@ int32 field::destroy(uint16 step, group * targets, effect * reason_effect, uint3
core
.
operated_set
=
targets
->
container
;
for
(
auto
cit
=
core
.
operated_set
.
begin
();
cit
!=
core
.
operated_set
.
end
();)
{
if
((
*
cit
)
->
current
.
reason
&
REASON_REPLACE
)
c
ore
.
operated_set
.
erase
(
cit
++
);
c
it
=
core
.
operated_set
.
erase
(
cit
);
else
cit
++
;
}
...
...
processor.cpp
View file @
cca6e870
...
...
@@ -1318,7 +1318,7 @@ int32 field::process_point_event(int16 step, int32 skip_trigger, int32 skip_free
core
.
select_chains
.
push_back
(
*
clit
);
}
else
{
peffect
->
active_type
=
0
;
c
ore
.
new_fchain_s
.
erase
(
clit
++
);
c
lit
=
core
.
new_fchain_s
.
erase
(
clit
);
continue
;
}
++
clit
;
...
...
@@ -1377,7 +1377,7 @@ int32 field::process_point_event(int16 step, int32 skip_trigger, int32 skip_free
core
.
select_chains
.
push_back
(
*
clit
);
}
else
{
peffect
->
active_type
=
0
;
c
ore
.
new_ochain_s
.
erase
(
clit
++
);
c
lit
=
core
.
new_ochain_s
.
erase
(
clit
);
continue
;
}
++
clit
;
...
...
@@ -1589,7 +1589,7 @@ int32 field::process_quick_effect(int16 step, int32 skip_freechain, uint8 priori
if
(
ifit
->
second
.
triggering_player
==
check_player
)
core
.
select_chains
.
push_back
(
ifit
->
second
);
}
else
{
core
.
quick_f_chain
.
erase
(
ifit
++
);
ifit
=
core
.
quick_f_chain
.
erase
(
ifit
);
continue
;
}
++
ifit
;
...
...
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