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
23b9ae8d
Commit
23b9ae8d
authored
Dec 08, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use int32 in query_field_count()
parent
8558110b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ocgapi.cpp
ocgapi.cpp
+2
-2
No files found.
ocgapi.cpp
View file @
23b9ae8d
...
@@ -223,14 +223,14 @@ extern "C" DECL_DLLEXPORT int32 query_field_count(intptr_t pduel, uint8 playerid
...
@@ -223,14 +223,14 @@ extern "C" DECL_DLLEXPORT int32 query_field_count(intptr_t pduel, uint8 playerid
if
(
location
==
LOCATION_DECK
)
if
(
location
==
LOCATION_DECK
)
return
(
int32
)
player
.
list_main
.
size
();
return
(
int32
)
player
.
list_main
.
size
();
if
(
location
==
LOCATION_MZONE
)
{
if
(
location
==
LOCATION_MZONE
)
{
u
int32
count
=
0
;
int32
count
=
0
;
for
(
auto
&
pcard
:
player
.
list_mzone
)
for
(
auto
&
pcard
:
player
.
list_mzone
)
if
(
pcard
)
if
(
pcard
)
++
count
;
++
count
;
return
count
;
return
count
;
}
}
if
(
location
==
LOCATION_SZONE
)
{
if
(
location
==
LOCATION_SZONE
)
{
u
int32
count
=
0
;
int32
count
=
0
;
for
(
auto
&
pcard
:
player
.
list_szone
)
for
(
auto
&
pcard
:
player
.
list_szone
)
if
(
pcard
)
if
(
pcard
)
++
count
;
++
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