aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-19 20:03:36 +0100
committern0n4m3 <none@none>2009-12-19 20:03:36 +0100
commit298fbf83aa9fa20807b3c833e7678923b67c775d (patch)
tree9cba65b4a57c947b34a415699c96c411950522ef /src
parent1c0f2d233fc0e9762b8be5b810e2037f3eb55e02 (diff)
Avoid spam for not completed packet read for CMSG_MOVE_SPLINE_DONE. by VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/TaxiHandler.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/TaxiHandler.cpp b/src/game/TaxiHandler.cpp
index e0a1c2512a8..ca62ac4a6e2 100644
--- a/src/game/TaxiHandler.cpp
+++ b/src/game/TaxiHandler.cpp
@@ -189,10 +189,19 @@ void WorldSession::HandleActivateTaxiExpressOpcode ( WorldPacket & recv_data )
GetPlayer()->ActivateTaxiPathTo(nodes, npc);
}
-void WorldSession::HandleMoveSplineDoneOpcode(WorldPacket& /*recv_data*/)
+void WorldSession::HandleMoveSplineDoneOpcode(WorldPacket& recv_data)
{
sLog.outDebug( "WORLD: Received CMSG_MOVE_SPLINE_DONE" );
+ uint64 guid; // used only for proper packet read
+ if(!recv_data.readPackGUID(guid))
+ return;
+
+ MovementInfo movementInfo; // used only for proper packet read
+ ReadMovementInfo(recv_data, &movementInfo);
+
+ recv_data.read_skip<uint32>(); // unk
+
// in taxi flight packet received in 2 case:
// 1) end taxi path in far (multi-node) flight
// 2) switch from one map to other in case multim-map taxi path