diff --git a/src/game/player.h b/src/game/player.h index ea925c94..22250db6 100644 --- a/src/game/player.h +++ b/src/game/player.h @@ -45,7 +45,7 @@ public: inline static int toId(player_t who) { - return int(static_cast(who) >> PLAYER_SHIFT); + return who == PLAYER_1 ? 1 : 2; } inline static player_t idToPlayer(int id)