aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-18 12:21:51 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-18 12:21:51 +0200
commit3d6c73c33276ecedba86cb871b4b5a089571629b (patch)
tree8a68bb982d5d0bde2a8886af9aa146d3c16a8ba4 /src/core
parent4f0403d24067c1f69b21cd29c5f9e5949e64c635 (diff)
downloadnissy-core-3d6c73c33276ecedba86cb871b4b5a089571629b.tar.gz
nissy-core-3d6c73c33276ecedba86cb871b4b5a089571629b.zip
New interface function nissy_countmoves
Diffstat (limited to 'src/core')
-rw-r--r--src/core/moves.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/moves.h b/src/core/moves.h
index d07bc19..e3a9bc1 100644
--- a/src/core/moves.h
+++ b/src/core/moves.h
@@ -223,8 +223,9 @@ readmoves(const char *buf, int max, uint8_t *ret)
223 uint8_t m; 223 uint8_t m;
224 int c; 224 int c;
225 225
226 FOREACH_READMOVE(buf, m, c, max, -1, 226 FOREACH_READMOVE(buf, m, c, max, NISSY_ERROR_INVALID_MOVES,
227 ret[c] = m; 227 if (ret != NULL)
228 ret[c] = m;
228 ) 229 )
229 230
230 return c; 231 return c;

Generated with cgit - Back to sebastiano.tronto.net