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
60c3c4f0
Commit
60c3c4f0
authored
Jan 12, 2026
by
mercury233
Committed by
GitHub
Jan 12, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix effect_set_category (#811)
parent
2e47dbea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libeffect.cpp
libeffect.cpp
+2
-2
No files found.
libeffect.cpp
View file @
60c3c4f0
...
@@ -20,7 +20,7 @@ int32_t scriptlib::get_effect_property(lua_State* L, effect_member type) {
...
@@ -20,7 +20,7 @@ int32_t scriptlib::get_effect_property(lua_State* L, effect_member type) {
if
(
peffect
)
{
if
(
peffect
)
{
switch
(
type
)
{
switch
(
type
)
{
case
MEMBER_CATEGORY
:
case
MEMBER_CATEGORY
:
value
=
peffect
->
category
;
value
=
(
lua_Integer
)
peffect
->
category
;
break
;
break
;
case
MEMBER_CODE
:
case
MEMBER_CODE
:
value
=
peffect
->
code
;
value
=
peffect
->
code
;
...
@@ -271,7 +271,7 @@ int32_t scriptlib::effect_set_category(lua_State *L) {
...
@@ -271,7 +271,7 @@ int32_t scriptlib::effect_set_category(lua_State *L) {
check_param_count
(
L
,
2
);
check_param_count
(
L
,
2
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
check_param
(
L
,
PARAM_TYPE_EFFECT
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
effect
*
peffect
=
*
(
effect
**
)
lua_touserdata
(
L
,
1
);
uint
32_t
v
=
(
uint32
_t
)
lua_tointeger
(
L
,
2
);
uint
64_t
v
=
(
uint64
_t
)
lua_tointeger
(
L
,
2
);
peffect
->
category
=
v
;
peffect
->
category
=
v
;
return
0
;
return
0
;
}
}
...
...
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