- killers[2] = countermoves[0];
- killers[3] = countermoves[1];
- killers[4] = followupmoves[0];
- killers[5] = followupmoves[1];
+ killers[2].move = killers[3].move = MOVE_NONE;
+
+ // In SMP case countermoves[] could have duplicated entries
+ // in rare cases (less than 1 out of a million). This is harmless.
+
+ // Be sure countermoves and followupmoves are different from killers
+ for (int i = 0; i < 2; ++i)
+ if ( countermoves[i] != killers[0]
+ && countermoves[i] != killers[1])
+ *endMoves++ = countermoves[i];