projects
/
stockfish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2097cd1
)
Fix a silly bug
author
Joona Kiiski
<joona.kiiski@gmail.com>
Sat, 30 Mar 2013 19:59:34 +0000
(19:59 +0000)
committer
Joona Kiiski
<joona.kiiski@gmail.com>
Fri, 5 Apr 2013 18:05:32 +0000
(19:05 +0100)
src/position.cpp
patch
|
blob
|
history
diff --git
a/src/position.cpp
b/src/position.cpp
index
22c1717
..
88ef25d
100644
(file)
--- a/
src/position.cpp
+++ b/
src/position.cpp
@@
-1237,10
+1237,10
@@
int Position::do_see(Move m, int asymmThreshold) const {
// FIXME: Document
if (Asymmetric)
{
- for (int i = 0; i < slIndex ;
slIndex
+= 2)
+ for (int i = 0; i < slIndex ;
i
+= 2)
{
- if (swapList[
slIndex
] < asymmThreshold)
- swapList[
slIndex
] = - QueenValueMg * 16;
+ if (swapList[
i
] < asymmThreshold)
+ swapList[
i
] = - QueenValueMg * 16;
}
}