Skip to content

Commit

Permalink
Fixed issue with move number not being initialized properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-bovet committed May 21, 2021
1 parent 86fd51b commit 036407b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shared/Engine/Engine/ChessGame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 036407b

Please sign in to comment.