]> git.sesse.net Git - stockfish/blobdiff - src/position.h
Move gamePly among the StateInfo data
[stockfish] / src / position.h
index 4514ca4c462cabeb8d14fcb866c42259328fa80c..766a84518c3f5a1f3bac447a119cd4788f1a0d8d 100644 (file)
@@ -100,7 +100,7 @@ enum Phase {
 
 struct StateInfo {
   Key pawnKey, materialKey;
-  int castleRights, rule50, pliesFromNull;
+  int castleRights, rule50, gamePly, pliesFromNull;
   Square epSquare;
   Score value;
   Value npMaterial[2];
@@ -323,7 +323,6 @@ private:
 
   // Other info
   Color sideToMove;
-  int gamePly;
   Key history[MaxGameLength];
   int castleRightsMask[64];
   StateInfo startState;