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
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-core
Commits
dff6d024
Commit
dff6d024
authored
Jul 18, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check param type for Group.FromCards
parent
675ff3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libgroup.cpp
libgroup.cpp
+3
-3
No files found.
libgroup.cpp
View file @
dff6d024
...
...
@@ -30,9 +30,9 @@ int32 scriptlib::group_from_cards(lua_State *L) {
duel
*
pduel
=
interpreter
::
get_duel_info
(
L
);
group
*
pgroup
=
pduel
->
new_group
();
for
(
int32
i
=
0
;
i
<
lua_gettop
(
L
);
++
i
)
{
void
*
p
=
lua_touserdata
(
L
,
i
+
1
);
if
(
p
)
{
card
*
pcard
=
*
(
card
**
)
p
;
if
(
!
lua_isnil
(
L
,
i
+
1
))
{
check_param
(
L
,
PARAM_TYPE_CARD
,
i
+
1
);
card
*
pcard
=
*
(
card
**
)
lua_touserdata
(
L
,
i
+
1
)
;
pgroup
->
container
.
insert
(
pcard
);
}
}
...
...
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