From 036407b7291af1f96dd1cf87457bd008052359d7 Mon Sep 17 00:00:00 2001 From: Jean Bovet Date: Thu, 20 May 2021 22:15:12 -0700 Subject: [PATCH] Fixed issue with move number not being initialized properly --- Shared/Engine/Engine/ChessGame.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Engine/Engine/ChessGame.hpp b/Shared/Engine/Engine/ChessGame.hpp index e2f5040..3a74b45 100644 --- a/Shared/Engine/Engine/ChessGame.hpp +++ b/Shared/Engine/Engine/ChessGame.hpp @@ -212,7 +212,7 @@ class ChessGame { // Unique ID for each generated move. // Simply incrementing this variable // is sufficient. - unsigned int moveUUID; + unsigned int moveUUID = 0; unsigned int nextMoveUUID() { if (moveUUID < UINT_MAX) {