Skip to content

Commit

Permalink
Fix online list packet translator for new InitReply enum values
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Mar 29, 2022
1 parent 2ba0c86 commit ca5dc9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EOLib/Net/Translators/OnlineListPacketTranslator.cs
Expand Up @@ -18,7 +18,7 @@ public OnlineListPacketTranslator(IECFFileProvider classFileProvider)

public IOnlineListData TranslatePacket(IPacket packet)
{
var reply = (InitReply)packet.ReadChar();
var reply = (InitReply)packet.ReadByte();

if (reply != InitReply.AllPlayersList && reply != InitReply.FriendPlayersList)
throw new MalformedPacketException($"Expected online list or friend list init data, but was {reply}", packet);
Expand Down

0 comments on commit ca5dc9d

Please sign in to comment.