aboutsummaryrefslogtreecommitdiff
path: root/src/uci.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-28 10:28:36 +0200
committerAdam <adammegarules1@gmail.com>2026-07-28 10:28:36 +0200
commitbc20789325250b1ca6b5b06a8021a99d91a5dc20 (patch)
treeb0e1b129a3cb33728e58c8b4075493a029ece942 /src/uci.cpp
parentca5e947269608757a1af5295f5c77958de341fc3 (diff)
fixing memory bug
Diffstat (limited to 'src/uci.cpp')
-rw-r--r--src/uci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uci.cpp b/src/uci.cpp
index 4825ece..a2c3672 100644
--- a/src/uci.cpp
+++ b/src/uci.cpp
@@ -59,7 +59,7 @@ Move UciToMove(string uci) {
return {from, to};
}
static Game initBoard(string startingFEN) {
- Game b;
+ Game b{};
b.enPassant = IndexToPosition(0); // default value
b.canEnpassant = false;
b.state = TURN;