position: Position::set() 中去掉对 phase 判断后退出的逻辑

即允许走入 Position::set() 时 phrase 是任意状态。
This commit is contained in:
Calcitem 2020-10-31 11:26:43 +08:00
parent 5ad8b4503a
commit 61f61391aa
1 changed files with 2 additions and 0 deletions

View File

@ -198,9 +198,11 @@ Position &Position::set(const string &fenStr, Thread *th)
Square sq = SQ_A1;
std::istringstream ss(fenStr);
#if 0
if (this->phase != PHASE_NONE && this->phase != PHASE_READY && this->phase != PHASE_GAMEOVER) {
goto out;
}
#endif
std::memset(this, 0, sizeof(Position));