修复 Player::toId() 的实现

This commit is contained in:
CalciteM Team 2019-09-15 03:00:11 +08:00
parent 19cfb40097
commit 386b008362
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public:
inline static int toId(player_t who)
{
return int(static_cast<int>(who) >> PLAYER_SHIFT);
return who == PLAYER_1 ? 1 : 2;
}
inline static player_t idToPlayer(int id)