Skip to content

Commit

Permalink
Fix login for player IDs greater than short.MaxValue due to sign exte…
Browse files Browse the repository at this point in the history
…nsion
  • Loading branch information
ethanmoffat committed Mar 4, 2022
1 parent 44cb872 commit b80ff5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOLib/Domain/Login/LoginActions.cs
Expand Up @@ -134,7 +134,7 @@ public async Task RequestCharacterLogin(ICharacter character)
public async Task<CharacterLoginReply> CompleteCharacterLogin()
{
var packet = new PacketBuilder(PacketFamily.Welcome, PacketAction.Message)
.AddThree(_playerInfoRepository.PlayerID)
.AddThree((ushort)_playerInfoRepository.PlayerID)
.AddInt(_characterRepository.MainCharacter.ID)
.Build();

Expand Down

0 comments on commit b80ff5c

Please sign in to comment.