fixed GetPieceType function
This commit is contained in:
1 parent
5952d8ade4
commit
8e26cc1013
3 files changed
+7
-1
No files matched your search
+1
-1
@@ -266,7 +266,7 @@ int Board::GetPieceType(int square) {
|
||||
if (pieces[piece].IsSet(square)) return piece;
|
||||
}
|
||||
|
||||
return -1;
|
||||
return nullPieceType;
|
||||
}
|
||||
|
||||
int Board::GetPieceColor(int square) {
|
||||
|
||||
Reference in new issue
Block a user