Core/Packets: Port packet handling rework from 335 branch

This commit is contained in:
Ovahlord committed 2019-05-30 16:59:37 +02:00
1 parent 5501502a03
commit dfbf50234d
21 files changed
+1867 -1497

No files matched your search

+2 -2
View File
@@ -28114,10 +28114,10 @@ bool Player::CanUseMastery() const
void Player::ReadMovementInfo(WorldPacket& data, MovementInfo* mi, Movement::ExtraMovementStatusElement* extras /*= nullptr*/)
{
MovementStatusElements const* sequence = GetMovementStatusElementsSequence(data.GetOpcode());
MovementStatusElements const* sequence = GetMovementStatusElementsSequence(static_cast<OpcodeClient>(data.GetOpcode()));
if (!sequence)
{
TC_LOG_ERROR("network", "Player::ReadMovementInfo: No movement sequence found for opcode %s", GetOpcodeNameForLogging(data.GetOpcode()).c_str());
TC_LOG_ERROR("network", "Player::ReadMovementInfo: No movement sequence found for opcode %s", GetOpcodeNameForLogging(static_cast<OpcodeClient>(data.GetOpcode())).c_str());
return;
}