aboutsummaryrefslogtreecommitdiff
path: root/src/core/moves.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/moves.h')
-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