Skip to content

Commit

Permalink
fix: moved opcode check
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Jan 21, 2022
1 parent 4826b8b commit f168015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Code/encoding/Messages/MountRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ struct MountRequest final : ClientMessage

bool operator==(const MountRequest& acRhs) const noexcept
{
return RiderId == acRhs.RiderId &&
MountId == acRhs.MountId &&
GetOpcode() == acRhs.GetOpcode();
return GetOpcode() == acRhs.GetOpcode() &&
RiderId == acRhs.RiderId &&
MountId == acRhs.MountId;
}

uint32_t RiderId;
Expand Down
6 changes: 3 additions & 3 deletions Code/encoding/Messages/NotifyMount.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ struct NotifyMount final : ServerMessage

bool operator==(const NotifyMount& acRhs) const noexcept
{
return RiderId == acRhs.RiderId &&
MountId == acRhs.MountId &&
GetOpcode() == acRhs.GetOpcode();
return GetOpcode() == acRhs.GetOpcode() &&
RiderId == acRhs.RiderId &&
MountId == acRhs.MountId;
}

uint32_t RiderId;
Expand Down

0 comments on commit f168015

Please sign in to comment.