diff --git a/packages/contracts/src/systems/PveBotSystem.sol b/packages/contracts/src/systems/PveBotSystem.sol index b3b073e..ead2d3d 100644 --- a/packages/contracts/src/systems/PveBotSystem.sol +++ b/packages/contracts/src/systems/PveBotSystem.sol @@ -19,7 +19,7 @@ contract PveBotSystem is System { function _getHeroIdx(address player) internal returns (bytes32 idx) { uint32 i = Player.getHeroOrderIdx(player); - idx = bytes32(uint256((uint160(player) << 32) + ++i)); + idx = bytes32((uint256(uint160(player)) << 96) + ++i); Player.setHeroOrderIdx(player, i); }