WAR: 临时处理内存泄漏最大的泄漏点

This commit is contained in:
Calcitem 2020-05-05 09:41:10 +08:00
parent 6399e03a36
commit 1114906434
1 changed files with 1 additions and 1 deletions

View File

@ -989,7 +989,7 @@ bool Position::checkGameOverCondition()
winner = Player::getOpponent(sideToMove); winner = Player::getOpponent(sideToMove);
int winnerId = Player::toId(winner); int winnerId = Player::toId(winner);
sprintf(cmdline, "Player%d no way to go. Player%d win!", sideId, winnerId); sprintf(cmdline, "Player%d no way to go. Player%d win!", sideId, winnerId);
cmdlist.emplace_back(string(cmdline)); //cmdlist.emplace_back(string(cmdline)); // TODO: 内存泄漏
return true; return true;
} }