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
627ee5b3
Commit
627ee5b3
authored
Mar 26, 2016
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6cbc4894
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
libcard.cpp
libcard.cpp
+6
-8
No files found.
libcard.cpp
View file @
627ee5b3
...
...
@@ -1094,15 +1094,13 @@ int32 scriptlib::card_get_flag_effect_label(lua_State *L) {
uint32
code
=
(
lua_tounsigned
(
L
,
2
)
&
0xfffffff
)
|
0x10000000
;
auto
rg
=
pcard
->
single_effect
.
equal_range
(
code
);
int32
count
=
0
;
if
(
rg
.
first
==
rg
.
second
)
{
-
lua_pushnil
(
L
);
count
=
1
;
for
(;
rg
.
first
!=
rg
.
second
;
++
rg
.
first
)
{
lua_pushinteger
(
L
,
rg
.
first
->
second
->
label
);
count
++
;
}
else
{
for
(;
rg
.
first
!=
rg
.
second
;
++
rg
.
first
)
{
lua_pushinteger
(
L
,
rg
.
first
->
second
->
label
);
count
++
;
}
if
(
!
count
)
{
lua_pushnil
(
L
);
return
1
;
}
return
count
;
}
...
...
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