aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellHandler.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-19 16:54:52 -0500
committermegamage <none@none>2009-08-19 16:54:52 -0500
commitedc05f2c19b320ea28536ea963c16266a152d1b4 (patch)
tree5a9d4179887932bd05b8392e6064a815003b97f1 /src/game/SpellHandler.cpp
parent012d6fa865fb8083dcbeae9b04926527b3c19f4e (diff)
[8382] Implement ByteArray functions for skip read of fields not needed for server in received packets. Author: VladimirMangos
* Use this fucntions in some case. * Change some packets to form: read fields first check later for better control recieved packets structure. * Fix CMSG_STAND_STATE_CHANGE packet structure to more correct. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellHandler.cpp')
-rw-r--r--src/game/SpellHandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp
index ab1ce6c4ba9..e1e816635aa 100644
--- a/src/game/SpellHandler.cpp
+++ b/src/game/SpellHandler.cpp
@@ -355,10 +355,9 @@ void WorldSession::HandleCastSpellOpcode(WorldPacket& recvPacket)
void WorldSession::HandleCancelCastOpcode(WorldPacket& recvPacket)
{
- // increments with every CANCEL packet, don't use for now
- uint8 counter;
uint32 spellId;
- recvPacket >> counter;
+
+ recvPacket.read_skip<uint8>(); // counter, increments with every CANCEL packet, don't use for now
recvPacket >> spellId;
if(_player->IsNonMeleeSpellCasted(false))