Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
4a96c756
Commit
4a96c756
authored
Aug 10, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1487 from DailyShana/patch-7
fix an infinite loop
parents
9e3aa690
847123bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ocgcore/operations.cpp
ocgcore/operations.cpp
+4
-1
No files found.
ocgcore/operations.cpp
View file @
4a96c756
...
...
@@ -1039,8 +1039,10 @@ int32 field::self_destroy(uint16 step) {
}
case
1
:
{
core
.
self_destroy_set
.
clear
();
if(!(core.global_flag & GLOBALFLAG_SELF_TOGRAVE))
if
(
!
(
core
.
global_flag
&
GLOBALFLAG_SELF_TOGRAVE
))
{
core
.
operated_set
.
clear
();
return
TRUE
;
}
core
.
units
.
begin
()
->
arg1
=
returns
.
ivalue
[
0
];
if
(
!
core
.
self_tograve_set
.
empty
())
send_to
(
&
core
.
self_tograve_set
,
0
,
REASON_EFFECT
,
PLAYER_NONE
,
PLAYER_NONE
,
LOCATION_GRAVE
,
0
,
POS_FACEUP
);
...
...
@@ -1050,6 +1052,7 @@ int32 field::self_destroy(uint16 step) {
}
case
2
:
{
core
.
self_tograve_set
.
clear
();
core
.
operated_set
.
clear
();
returns
.
ivalue
[
0
]
+=
core
.
units
.
begin
()
->
arg1
;
return
TRUE
;
}
...
...
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